diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbb2cebb64e1da20b31c5a3899123b940abb6254..13086508ca82ea2720c67592274298f7cfca1a8c 100644 (file)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
project(kms++)
IF(NOT CMAKE_BUILD_TYPE)
- SET(CMAKE_BUILD_TYPE Release CACHE STRING
- "Choose the type of build, options are: Debug, Release."
- FORCE)
-ENDIF(NOT CMAKE_BUILD_TYPE)
+ message(STATUS "Setting build type to 'Release' as none was specified.")
+ SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
+ENDIF()
set(LIBKMS_ENABLE_PYTHON ON CACHE BOOL "Enable Python wrappers")
set(LIBKMS_ENABLE_KMSCUBE OFF CACHE BOOL "Enable kmscube")