1
0
Fork 0

cmake: Use a default build type that builds fast executables.

This commit is contained in:
Mathias Froehlich 2011-09-12 08:10:48 +02:00
parent 0749bbcaca
commit 81b125069b

View file

@ -33,6 +33,13 @@ set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
# autoconf compatibility # autoconf compatibility
set(PKGLIBDIR "foo") 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}) if($ENV{BUILD_ID})
set(HUDSON_BUILD_ID $ENV{BUILD_ID}) set(HUDSON_BUILD_ID $ENV{BUILD_ID})
set(HUDSON_BUILD_NUMBER $ENV{BUILD_NUMBER}) set(HUDSON_BUILD_NUMBER $ENV{BUILD_NUMBER})