summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-08-24 16:40:49 +0200
committerDominik Holland <dominik.holland@qt.io>2021-08-24 17:10:51 +0200
commit5e50d82cfb6356495e48cf86c4e7f5371c88b707 (patch)
tree5e14bfa06f3a1cbc6ecab9e167fb97a1b464ba9e
parentcf0a037b8cde8ece05bdbe2fe9a0b9e6e4e43ea5 (diff)
CMake: Fix the 'host_tools_only' feature to be settable from cmdline
Use ENABLE/DISABLE options instead of CONDITION. Change-Id: Icee79ee4550a765a4fffc8a0ed07562055e717d0 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
-rw-r--r--src/interfaceframework/configure.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaceframework/configure.cmake b/src/interfaceframework/configure.cmake
index dbb03aaf..ebf016c1 100644
--- a/src/interfaceframework/configure.cmake
+++ b/src/interfaceframework/configure.cmake
@@ -56,7 +56,9 @@ qt_feature("ifcodegen" PUBLIC
)
qt_feature("host-tools-only" PRIVATE
LABEL "Only build the host tools"
- CONDITION INPUT_host_tools_only STREQUAL 'yes'
+ AUTODETECT OFF
+ ENABLE INPUT_host_tools_only STREQUAL 'yes'
+ DISABLE INPUT_host_tools_only STREQUAL 'no'
)
qt_feature("remoteobjects" PUBLIC
LABEL "QtRemoteObjects Support"