From 7d0cbc34795edd1f568e14d54966623836d0c575 Mon Sep 17 00:00:00 2001 From: jhendersonHDF Date: Fri, 12 Apr 2024 11:26:48 -0500 Subject: [PATCH] Set available CMake build types for non-multi-config generators (#4330) --- config/cmake/HDFMacros.cmake | 3 +++ 1 file changed, 3 insertions(+) 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 ()