Commit e605f95e authored by jcfr's avatar jcfr

ENH: CMakeLists.txt - Set a default build type if none was specified

git-svn-id: http://svn.slicer.org/Slicer4/trunk@17073 3bd1e089-480b-0410-8dfb-8563597acbee
parent 510d50ea
......@@ -14,6 +14,17 @@ if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
#-----------------------------------------------------------------------------
# Set a default build type if none was specified
#-----------------------------------------------------------------------------
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
"MinSizeRel" "RelWithDebInfo")
endif()
#-----------------------------------------------------------------------------
# Set the header template which defines custom export/import macros
# for shared libraries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment