cmake - proceed to package search if HDF5_LIBRARY_DIR not provided

Fixes issue with ci.yml
This commit is contained in:
Andrej730
2025-10-01 11:25:52 +05:00
parent ab0a602f9f
commit 26c68c00b7
+2 -1
View File
@@ -786,7 +786,7 @@ if(HDF5_SUPPORT)
endif()
endif()
if(NOT HDF5_INCLUDE_DIR)
if(NOT HDF5_INCLUDE_DIR OR NOT HDF5_LIBRARY_DIR)
# First try to find it as a config.
find_package(HDF5 CONFIG)
if(HDF5_DIR)
@@ -800,6 +800,7 @@ if(HDF5_SUPPORT)
if(NOT HDF5_INCLUDE_DIR)
message(
FATAL_ERROR
"HDF5_INCLUDE_DIR is not provided (current value: '${HDF5_INCLUDE_DIR}'). "
"HDF5_LIBRARY_DIR is not provided (current value: '${HDF5_LIBRARY_DIR}'). "
"Also could not find HDF5 package (neither module or config)."
)