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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)