cmake: build RelWithDebInfo by default

RelWithDebInfo is now the default; this is what most _consumers_ of the
library probably want, even though the developers likely want Debug
builds.
This commit is contained in:
Edward Thomson
2026-05-09 13:26:41 +01:00
parent b9ff26de1a
commit fbad63cc82

View File

@@ -78,7 +78,7 @@ if(MSVC)
endif()
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()