Unverified Commit bcf600d7 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

let CMake configuration default to Release with debug settings

this way we can more easily get detailed stack traces from people compiling with CMake
parent 06275b03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -37,7 +37,7 @@ include(PreventInSourceBuilds)


if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS)
  #release comes with -O3 by default
  #release comes with -O3 by default
  set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
  set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS)
endif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CXX_FLAGS)
string(TOUPPER "${CMAKE_BUILD_TYPE}" BTYPE)
string(TOUPPER "${CMAKE_BUILD_TYPE}" BTYPE)