From 5feaf0186fa898d7d44fc5e7dd4210ea8aaa75e6 Mon Sep 17 00:00:00 2001 From: Jordan Henderson Date: Thu, 4 Apr 2024 15:30:25 -0500 Subject: [PATCH] Set available CMake build types for non-multi-config generators --- 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 ()