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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue