diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-02-26 12:53:30 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-03-05 07:47:56 +0100 |
commit | becbd07f5529c88bf460f51e8ec5475ec8575fb7 (patch) | |
tree | 9a3fd2f48f312ab4f1705d0460866bdee03f74f0 /configure.cmake | |
parent | a0ffdf765e34820b591bcb9d1bee6df0985056cf (diff) |
CMake: Port the 'debug' feature
This feature is read-only and supposed to be set by variables like
CMAKE_BUILD_TYPE. It mainly exists for the qmake support.
Change-Id: Ic7e32cbda0f3c2d92dd446b07a3bf1a8d85ec3b9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 45f5ba0ef4..3cd0e8cf95 100644 --- a/configure.cmake +++ b/configure.cmake @@ -344,6 +344,11 @@ qt_feature_definition("developer-build" "QT_BUILD_INTERNAL") qt_feature_config("developer-build" QMAKE_PUBLIC_QT_CONFIG NAME "private_tests" ) +qt_feature("debug" + LABEL "Build for debugging" + AUTODETECT QT_FEATURE_developer_build OR ( WIN32 AND NOT GCC ) OR APPLE + CONDITION Debug STREQUAL CMAKE_BUILD_TYPE OR Debug IN_LIST CMAKE_CONFIGURATION_TYPES +) qt_feature("appstore-compliant" PUBLIC LABEL "App store compliance" PURPOSE "Disables code that is not allowed in platform app stores" |