diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-02-26 13:38:23 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-03-05 07:48:11 +0100 |
commit | b99321b78bd011ff9b184e9c28d4b01e14e23969 (patch) | |
tree | f4cf8e245d326d2efd21af17742204a0d6dd00ff /configure.cmake | |
parent | 46a2366d12839e009e6010c584ce73e6af04fdbe (diff) |
CMake: Port the 'force_debug_info' feature
This feature is read-only and is ON if CMAKE_BUILD_TYPE is RelWithDebInfo
or if that value is in CMAKE_CONFIGURATION_TYPES.
It mainly exists for the qmake support.
Change-Id: I25cb57e832dcfcab100834a104b1a3d34f01086b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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 c204a836e2..9610d37576 100644 --- a/configure.cmake +++ b/configure.cmake @@ -362,6 +362,11 @@ qt_feature("debug_and_release" PUBLIC CONDITION QT_GENERATOR_IS_MULTI_CONFIG ) qt_feature_config("debug_and_release" QMAKE_PUBLIC_QT_CONFIG) +qt_feature("force_debug_info" + LABEL "Add debug info in release mode" + AUTODETECT CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR RelWithDebInfo IN_LIST CMAKE_CONFIGURATION_TYPES +) +qt_feature_config("force_debug_info" QMAKE_PRIVATE_CONFIG) qt_feature("appstore-compliant" PUBLIC LABEL "App store compliance" PURPOSE "Disables code that is not allowed in platform app stores" |