From 46a2366d12839e009e6010c584ce73e6af04fdbe Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 26 Feb 2020 13:23:05 +0100 Subject: CMake: Port the 'debug_and_release' feature This feature is read-only. It's controlled by the multi-config feature of CMake. It mainly exists for the qmake support. Change-Id: I322459598fe92568eda4d42319ded444537e95d4 Reviewed-by: Alexandru Croitor --- configure.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.cmake') diff --git a/configure.cmake b/configure.cmake index 5426b8c107..c204a836e2 100644 --- a/configure.cmake +++ b/configure.cmake @@ -356,6 +356,12 @@ qt_feature("debug" 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("debug_and_release" PUBLIC + LABEL "Compile libs in debug and release mode" + AUTODETECT 1 + CONDITION QT_GENERATOR_IS_MULTI_CONFIG +) +qt_feature_config("debug_and_release" QMAKE_PUBLIC_QT_CONFIG) qt_feature("appstore-compliant" PUBLIC LABEL "App store compliance" PURPOSE "Disables code that is not allowed in platform app stores" -- cgit v1.2.1