1# Set a default build type if none was specified
2if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
3  message(STATUS "Setting build type to 'Debug' as none was specified.")
4  set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
5  # Set the possible values of build type for cmake-gui
6  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
7    "MinSizeRel" "RelWithDebInfo")
8endif()
9