From afb5db6535de95151ac73401c0497bd4eb1d346a Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Tue, 24 Aug 2021 19:14:39 +0200 Subject: [PATCH] fix(CMake/Build): set default build type to RelWithDebInfo (#7445) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f4117b49..f2a7a87fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)