CMake: Fix detection of debug_and_release for iOS simulator_and_device
create_cmake.prf populates the values of CMAKE_RELEASE_TYPE and CMAKE_DEBUG_TYPE depending on if Qt was configured with debug, or release, or the build_all feature was set (which implies debug_and_release). simulator_and_device also implies build_all. This is a problem when configuring a Qt simulator_and_device build with only a "debug" configuration, or only a "release" configuration. In that case we would try to parse prl files for both configurations, even though only one configuration exists. Switch to checking for debug_and_release scope explicitly instead of build_all. This allows configuring and building a Qt iOS device_and_simulator debug configuration which is usable from CMake. Task-number: QTBUG-38913 Change-Id: Ife6d5d34d2b6bb1ac787d901a166e41c6e0c844b Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
5789ece6d0
commit
82a2c7df30
@ -138,8 +138,8 @@ CMAKE_RELEASE_TYPE =
|
|||||||
# the debug libraries at build time.
|
# the debug libraries at build time.
|
||||||
|
|
||||||
equals(QMAKE_HOST.os, Windows): CMAKE_BIN_SUFFIX = ".exe"
|
equals(QMAKE_HOST.os, Windows): CMAKE_BIN_SUFFIX = ".exe"
|
||||||
if(build_all|CONFIG(debug, debug|release)): CMAKE_DEBUG_TYPE = debug
|
debug_and_release|CONFIG(debug, debug|release): CMAKE_DEBUG_TYPE = debug
|
||||||
if(build_all|CONFIG(release, debug|release)): CMAKE_RELEASE_TYPE = release
|
debug_and_release|CONFIG(release, debug|release): CMAKE_RELEASE_TYPE = release
|
||||||
|
|
||||||
# CMAKE_DEBUG_AND_RELEASE is used to tell the _populate_$${CMAKE_MODULE_NAME}_target_properties
|
# CMAKE_DEBUG_AND_RELEASE is used to tell the _populate_$${CMAKE_MODULE_NAME}_target_properties
|
||||||
# functions whether a Configuration specific generator expression needs to be added to the values
|
# functions whether a Configuration specific generator expression needs to be added to the values
|
||||||
|
Loading…
Reference in New Issue
Block a user