summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-06-16 08:44:36 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-06-16 14:07:09 +0200
commit3ca5b46e5da04672ed0eaeaa6a5b30673705e4c9 (patch)
tree7832ffb154cafe05fdb795b1fb1e37bea3ed520b /configure.cmake
parent9648ffff7efbb3582506184191411197c9099c69 (diff)
Expose the "debug" build feature privately
Consumers can now check the "debug" feature to determine whether Qt was built in the "Debug" configuration. Pick-to: 6.2 6.1 Change-Id: I225125d38ded508e9792a730ce421b33bceacddf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index 76ad4f32f8..e31d8b6f56 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -446,7 +446,7 @@ qt_feature_definition("developer-build" "QT_BUILD_INTERNAL")
qt_feature_config("developer-build" QMAKE_PUBLIC_QT_CONFIG
NAME "private_tests"
)
-qt_feature("debug"
+qt_feature("debug" PRIVATE
LABEL "Build for debugging"
AUTODETECT ON
CONDITION CMAKE_BUILD_TYPE STREQUAL Debug OR Debug IN_LIST CMAKE_CONFIGURATION_TYPES
@@ -1161,4 +1161,3 @@ qt_extra_definition("QT_VERSION_STR" "\"${PROJECT_VERSION}\"" PUBLIC)
qt_extra_definition("QT_VERSION_MAJOR" ${PROJECT_VERSION_MAJOR} PUBLIC)
qt_extra_definition("QT_VERSION_MINOR" ${PROJECT_VERSION_MINOR} PUBLIC)
qt_extra_definition("QT_VERSION_PATCH" ${PROJECT_VERSION_PATCH} PUBLIC)
-