[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37904] trunk/blender/CMakeLists.txt: CMake: set default cmake build type to Release.

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Jun 28 16:42:12 CEST 2011


Revision: 37904
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37904
Author:   blendix
Date:     2011-06-28 14:42:11 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
CMake: set default cmake build type to Release. Without that you would
get a build that has neither debug symbols nor optimization, now it
will build an optimized blender by default.

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt	2011-06-28 14:37:08 UTC (rev 37903)
+++ trunk/blender/CMakeLists.txt	2011-06-28 14:42:11 UTC (rev 37904)
@@ -53,6 +53,10 @@
 	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")




More information about the Bf-blender-cvs mailing list