configure: Add example how to pass CMake variables

Be more precise in how to pass CMake variables to configure.

Pick-to: 6.8
Task-number: QTBUG-128424
Change-Id: I0f3e7d049fa861631587a4fb79e93be54319bbee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Joerg Bornemann 2024-09-04 09:52:15 +02:00
parent f6e964d0f6
commit 0a4d023e5f

View File

@ -2,9 +2,10 @@ Usage: configure [options] [-- cmake-options]
This is a convenience script for configuring Qt with CMake.
Options after the double dash are directly passed to CMake.
Configure understands variable assignments like VAR=value on the command line.
These are passed to CMake as -DVAR=value.
You can pass CMake variables as configure arguments:
configure VAR=value
which is equivalent to
configure -- -DVAR=value
Top-level installation directories:
-prefix <dir> ...... The deployment directory, as seen on the target device.