summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-12-02 11:47:24 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-02 18:39:21 +0000
commite911d57f24cf30e9052486c0eba48ce6dc3542ff (patch)
tree9e02b7589aa5833c53ebbe57dba17cd9d6905392 /cmake
parentaeb0a36015f69f301aa6aa87dd84c644c825308e (diff)
CMake: mention the QT_BUILD_X_BY_DEFAULT=OFF
Which is probably the direct port of -nomake XXX, as qmake always offered the way to build tests/examples/etc. after configuring without, while cmake doesn't. Change-Id: I85b039e56cde3ddfaf661385100d3c3a8cc2ac16 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit b70ddde4b651d0825e7e12fdbc50271bd298eea8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/configure-cmake-mapping.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md
index 2f669aad9a..6b6ec25466 100644
--- a/cmake/configure-cmake-mapping.md
+++ b/cmake/configure-cmake-mapping.md
@@ -102,8 +102,13 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -android-javac-source | -DQT_ANDROID_JAVAC_SOURCE=7 | Set the javac build source version. |
| -android-javac-target | -DQT_ANDROID_JAVAC_TARGET=7 | Set the javac build target version. |
| -skip <repo> | -DBUILD_<repo>=OFF | |
-| -make <part> | -DQT_BUILD_TESTS=ON | A way to turn on tools explicitly is missing. |
-| | -DQT_BUILD_EXAMPLES=ON | |
+| -make <part> | -DQT_BUILD_TESTS=ON | A way to turn on tools explicitly is missing. If tests/examples |
+| | -DQT_BUILD_EXAMPLES=ON | are enabled, you can disable their building as part of the |
+| | | 'all' target by also passing -DQT_BUILD_TESTS_BY_DEFAULT=OFF or |
+| | | -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF. Note that if you entirely |
+| | | disable tests/examples at configure time (by using |
+| | | -DQT_BUILD_TESTS=OFF or -DQT_BUILD_EXAMPLES=OFF) you can't then |
+| | | build them separately, after configuration. |
| -nomake <part> | -DQT_BUILD_TESTS=OFF | A way to turn off tools explicitly is missing. |
| | -DQT_BUILD_EXAMPLES=OFF | |
| -no-gui | | |