configure: Add example how to pass CMake variables

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

Task-number: QTBUG-128424
Change-Id: I0f3e7d049fa861631587a4fb79e93be54319bbee
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
(cherry picked from commit 0a4d023e5fd2bd166503a27591c456991f680823)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Joerg Bornemann 2024-09-04 09:52:15 +02:00 committed by Qt Cherry-pick Bot
parent 19b710951f
commit 1b22ef4a35

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.