Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-06-28 18:42:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-06-28 18:42:11 +0400
commita05b66defb14de86fa9845e16c0a8557a7a28723 (patch)
treeac5e9aed790c8f233caa327e00b044f1c54bb1be /CMakeLists.txt
parent3c43e8e50ac991b082c143c634e4776aaca02db1 (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad2c6f89c08..ca658f2e0dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")