mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix conditional check for CMAKE_BUILD_TYPE (#5751)
The default is the empty string therefore it is defined
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user