The CMake GUI (cmake-gui) will display a drop-down list if they are
added as a property to the CMAKE_BUILD_TYPE, making it easier to
select a valid type from the list.
Change-Id: I50b2d8c951b68a13ac7dd80812c2c35365530bb7
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel Reference." FORCE)
+ # Set the possible values of build type for cmake-gui
+ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release"
+ "MinSizeRel" "RelWithDebInfo")
endif(NOT CMAKE_BUILD_TYPE)
enable_language(C)