Cmake: Allow the RelWithDebInfo MinSizeRel as Configuration Type, additionally

This commit is contained in:
Frank Zingsheim 2015-11-26 21:16:59 +01:00
parent e5a3ba7cac
commit b48cbde860
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#------------------------------------------------------ #------------------------------------------------------
# Build type # Build type
#------------------------------------------------------ #------------------------------------------------------
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE) set(CMAKE_CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;MinSizeRel" CACHE STRING "Configs" FORCE)
if(DEFINED CMAKE_BUILD_TYPE) if(DEFINED CMAKE_BUILD_TYPE)
SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES}) SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES})
endif() endif()
@ -26,7 +26,7 @@ option(WARNINGS_ANSI_ISO "Issue all the mandatory diagnostics Listed in C sta
set(USE_MATCHCOMPILER "Auto" CACHE STRING "Usage of match compliler") set(USE_MATCHCOMPILER "Auto" CACHE STRING "Usage of match compliler")
set_property(CACHE USE_MATCHCOMPILER PROPERTY STRINGS Auto Off On Verify) set_property(CACHE USE_MATCHCOMPILER PROPERTY STRINGS Auto Off On Verify)
if (USE_MATCHCOMPILER STREQUAL "Auto") if (USE_MATCHCOMPILER STREQUAL "Auto")
if (CMAKE_BUILD_TYPE STREQUAL "Release") if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
set(USE_MATCHCOMPILER_OPT "On") set(USE_MATCHCOMPILER_OPT "On")
else() else()
set(USE_MATCHCOMPILER_OPT "Off") set(USE_MATCHCOMPILER_OPT "Off")