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

index 381ac41cb411632e510be428475414d1690dac88..68d8e0597de8267a05096c500ae1605495050cd3 100644 (file)
@@ -29,6 +29,13 @@ message(STATUS "version is ${CPACK_PACKAGE_VERSION_MAJOR} dot ${CPACK_PACKAGE_VE
 # We have some custom .cmake scripts not in the official distribution.
 set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")
 
+# 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)
+
 option(SIMGEAR_SHARED "Set to ON to build SimGear as a shared library/framework" OFF)
 option(SIMGEAR_HEADLESS "Set to ON to build SimGear without GUI/graphics support" OFF)
 option(JPEG_FACTORY "Enable JPEG-factory support" OFF)