Commit 7630d3bc authored by Bastien Jacquet's avatar Bastien Jacquet
Browse files

Warn developers when no CMAKE_BUILD_TYPE is set, and default to RelWithDebInfo

parent 59d652d5
......@@ -7,6 +7,16 @@ set (SuperBuild_BINARY_DIR ${VeloViewSuperBuild_BINARY_DIR})
include(CMakeDependentOption)
#------------------------------------------------------------------------------
# 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 'RelWithDebInfo' as none was specified.")
set(CMAKE_BUILD_TYPE RelWithDebInfo 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()
#-----------------------------------------------------------------------------
# Collect information about the build platform.
include(CheckTypeSize)
......
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