]> git.mxchange.org Git - flightgear.git/commitdiff
cmake: Use a default build type that builds fast executables.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Mon, 12 Sep 2011 06:10:48 +0000 (08:10 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Mon, 12 Sep 2011 06:10:48 +0000 (08:10 +0200)
CMakeLists.txt

index e6d449217c8eca0305a3796021cf0503586b7289..8dd8107df352adff3b2c1682cf56275947b0a4a1 100644 (file)
@@ -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})