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.
This commit is contained in:
Brecht Van Lommel 2011-06-28 14:42:11 +00:00
parent 3c43e8e50a
commit a05b66defb

@ -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")