cmake: Use a default build type that builds fast executables.
This commit is contained in:
parent
0749bbcaca
commit
81b125069b
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,13 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
|
|||
# autoconf compatibility
|
||||
set(PKGLIBDIR "foo")
|
||||
|
||||
# Change the default build type to something fast
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release CACHE STRING
|
||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
||||
FORCE)
|
||||
endif(NOT CMAKE_BUILD_TYPE)
|
||||
|
||||
if($ENV{BUILD_ID})
|
||||
set(HUDSON_BUILD_ID $ENV{BUILD_ID})
|
||||
set(HUDSON_BUILD_NUMBER $ENV{BUILD_NUMBER})
|
||||
|
|
Loading…
Reference in a new issue