2021-09-14 20:05:42 +02:00
|
|
|
# Set a default build type if none was specified
|
2022-07-25 22:30:11 +02:00
|
|
|
|
2021-09-14 20:05:42 +02:00
|
|
|
set(default_build_type "Release")
|
|
|
|
|
2022-09-03 16:07:44 +02:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
|
|
|
|
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
|
2022-07-25 22:30:11 +02:00
|
|
|
|
2022-09-03 16:07:44 +02:00
|
|
|
# Set the possible values of build type for cmake-gui
|
2021-09-14 20:05:42 +02:00
|
|
|
endif()
|
2022-09-03 16:07:44 +02:00
|
|
|
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
|