CMakeLists.txt: Default build type to RelWithDebInfo if none is defined

This commit is contained in:
Gianfranco Costamagna 2018-05-14 11:58:43 +02:00
commit cfb336e174
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@ include(CTest)
include(GNUInstallDirs)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to release")
set(CMAKE_BUILD_TYPE "release")
message(STATUS "No build type selected, default to RelWithDebInfo")
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

View file

@ -55,7 +55,7 @@ cleanup
mkdir build || rm -rf build/*
cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake ..
VERBOSE=1 make -j10
VERBOSE=1 make test
cd ..