CMake: Make Release the main config of a -debug-and-release build
In configure we need to set the Release configuration first to make it the main configuration. Change-Id: I5fe744b0dcea009c4d672bf519b38c80c87475dd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
16d412da4c
commit
e990b649fa
@ -668,7 +668,7 @@ if(INPUT_debug)
|
|||||||
elseif("${INPUT_debug}" STREQUAL "no")
|
elseif("${INPUT_debug}" STREQUAL "no")
|
||||||
set(build_configs Release)
|
set(build_configs Release)
|
||||||
elseif(INPUT_debug_and_release)
|
elseif(INPUT_debug_and_release)
|
||||||
set(build_configs Debug Release)
|
set(build_configs Release Debug)
|
||||||
endif()
|
endif()
|
||||||
if(INPUT_force_debug_info)
|
if(INPUT_force_debug_info)
|
||||||
list(TRANSFORM build_configs REPLACE "^Release$" "RelWithDebInfo")
|
list(TRANSFORM build_configs REPLACE "^Release$" "RelWithDebInfo")
|
||||||
|
Loading…
Reference in New Issue
Block a user