CMakeLists.txt: Default build type to RelWithDebInfo if none is defined
This commit is contained in:
parent
df143a08f9
commit
cfb336e174
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue