Skip to content

Commit b48cbde

Browse files
committed
Cmake: Allow the RelWithDebInfo MinSizeRel as Configuration Type, additionally
1 parent e5a3ba7 commit b48cbde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/options.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#------------------------------------------------------
22
# Build type
33
#------------------------------------------------------
4-
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
4+
set(CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRel" CACHE STRING "Configs" FORCE)
55
if(DEFINED CMAKE_BUILD_TYPE)
66
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES})
77
endif()
@@ -26,7 +26,7 @@ option(WARNINGS_ANSI_ISO "Issue all the mandatory diagnostics Listed in C sta
2626
set(USE_MATCHCOMPILER "Auto" CACHE STRING "Usage of match compliler")
2727
set_property(CACHE USE_MATCHCOMPILER PROPERTY STRINGS Auto Off On Verify)
2828
if (USE_MATCHCOMPILER STREQUAL "Auto")
29-
if (CMAKE_BUILD_TYPE STREQUAL "Release")
29+
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
3030
set(USE_MATCHCOMPILER_OPT "On")
3131
else()
3232
set(USE_MATCHCOMPILER_OPT "Off")

0 commit comments

Comments
 (0)