summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-11-06 22:15:44 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-11-10 14:23:08 +0100
commite990b649fa999fd55ccfb223991fce4bb3d6c0e3 (patch)
tree6ee5d15005d3d38a29243a4c1a2720404a6034d2 /cmake
parent16d412da4c0d7ef4776604b906fccb8132a7712d (diff)
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>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtProcessConfigureArgs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index e46419ce19..ea3fa1281a 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -668,7 +668,7 @@ if(INPUT_debug)
elseif("${INPUT_debug}" STREQUAL "no")
set(build_configs Release)
elseif(INPUT_debug_and_release)
- set(build_configs Debug Release)
+ set(build_configs Release Debug)
endif()
if(INPUT_force_debug_info)
list(TRANSFORM build_configs REPLACE "^Release$" "RelWithDebInfo")