Fix conditional check for CMAKE_BUILD_TYPE (#5751)

The default is the empty string therefore it is defined
This commit is contained in:
Allen Byrne
2025-08-29 11:14:53 -05:00
committed by GitHub
parent 0ab9576cb9
commit 00c0438cbe
+1 -1
View File
@@ -514,7 +514,7 @@ set (H5_LIBVER_DIR ${H5_VERS_MAJOR}${H5_VERS_MINOR})
get_property(IS_MULTI GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT IS_MULTI)
if(NOT CMAKE_BUILD_TYPE AND NOT IS_MULTI)
message(STATUS "No CMAKE_BUILD_TYPE set -- using Release")
set(CMAKE_BUILD_TYPE Release)
endif()