diff --git a/config/cmake/HDFMacros.cmake b/config/cmake/HDFMacros.cmake index 15338272ccf..cefdaa03863 100644 --- a/config/cmake/HDFMacros.cmake +++ b/config/cmake/HDFMacros.cmake @@ -79,6 +79,9 @@ macro (SET_HDF_BUILD_TYPE) else () set (HDF_CFG_NAME "Release") endif () + # Set available build types for cmake-gui/ccmake convenience + set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Release" "RelWithDebInfo" "MinSizeRel" "Developer") endif () endmacro ()