CMake: set default cmake build type to Release. Without that you would
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 28 Jun 2011 14:42:11 +0000 (14:42 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 28 Jun 2011 14:42:11 +0000 (14:42 +0000)
get a build that has neither debug symbols nor optimization, now it
will build an optimized blender by default.

CMakeLists.txt

index ad2c6f89c0839c5a812402d0f8f1a7e4db83b6bc..ca658f2e0dd634be4ec619c5575ac989723f8eb2 100644 (file)
@@ -53,6 +53,10 @@ if(NOT EXECUTABLE_OUTPUT_PATH)
        set(FIRST_RUN "TRUE")
 endif()
 
+# set default build type to Release
+if(NOT CMAKE_BUILD_TYPE)
+       set(CMAKE_BUILD_TYPE "Release")
+endif()
 
 # this starts out unset
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/build_files/cmake/Modules")