fix(CMake/Build): set default build type to RelWithDebInfo (#7445)

This commit is contained in:
Kitzunu
2021-08-24 19:14:39 +02:00
committed by GitHub
parent 2e3072b09a
commit afb5db6535

View File

@@ -78,8 +78,8 @@ ENDFOREACH()
CU_RUN_HOOK("AFTER_LOAD_CONF")
# build in Release-mode by default if not explicitly set
if( NOT CMAKE_BUILD_TYPE )
set(CMAKE_BUILD_TYPE "Release")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
endif()
# turn off PCH totally if enabled (hidden setting, mainly for devs)