From e911d57f24cf30e9052486c0eba48ce6dc3542ff Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 2 Dec 2020 11:47:24 +0100 Subject: 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 (cherry picked from commit b70ddde4b651d0825e7e12fdbc50271bd298eea8) Reviewed-by: Qt Cherry-pick Bot --- cmake/configure-cmake-mapping.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cmake') 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 | -DBUILD_=OFF | | -| -make | -DQT_BUILD_TESTS=ON | A way to turn on tools explicitly is missing. | -| | -DQT_BUILD_EXAMPLES=ON | | +| -make | -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 | -DQT_BUILD_TESTS=OFF | A way to turn off tools explicitly is missing. | | | -DQT_BUILD_EXAMPLES=OFF | | | -no-gui | | | -- cgit v1.2.3