Skip to content

Commit

Permalink
[CMake] Default CMAKE_BUILD_TYPE to RelWithDebInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
christianparpart committed Oct 15, 2021
1 parent 8f31731 commit 1c97a13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE
STRING "Choose the build mode." FORCE)
endif()
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release MinSizeRel RelWithDebInfo)

include(EnableCcache)
include(ClangTidy)
include(PedanticCompiler)
Expand Down

0 comments on commit 1c97a13

Please sign in to comment.