summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-06-16 08:44:36 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-16 15:03:21 +0000
commit83b90ef261de41f826a0225186d69199aa77f5ba (patch)
tree64c207d21c4eab6dbeba7798b4fc717e7b733587 /configure.cmake
parentd8424686851ed843e2a799091895aa8d3a0e7645 (diff)
Expose the "debug" build feature privately
Consumers can now check the "debug" feature to determine whether Qt was built in the "Debug" configuration. Change-Id: I225125d38ded508e9792a730ce421b33bceacddf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 3ca5b46e5da04672ed0eaeaa6a5b30673705e4c9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.cmake b/configure.cmake
index 54707fd4c1..b252972077 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -473,7 +473,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