feat(build): use Release when compilation mode is not specified
This commit is contained in:
parent
e3e1668f27
commit
26918022d8
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@ project(LEAN CXX)
|
||||||
set(LEAN_VERSION_MAJOR 0)
|
set(LEAN_VERSION_MAJOR 0)
|
||||||
set(LEAN_VERSION_MINOR 2)
|
set(LEAN_VERSION_MINOR 2)
|
||||||
|
|
||||||
|
if (NOT CMAKE_BUILD_TYPE)
|
||||||
|
message(STATUS "No build type selected, default to Release")
|
||||||
|
set(CMAKE_BUILD_TYPE "Release")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_COLOR_MAKEFILE ON)
|
set(CMAKE_COLOR_MAKEFILE ON)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue