package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
604 B

diff --git a/CMake/HighFiveTargetDeps.cmake b/CMake/HighFiveTargetDeps.cmake
index 50c3e9d..83ea21b 100644
--- a/CMake/HighFiveTargetDeps.cmake
+++ b/CMake/HighFiveTargetDeps.cmake
@@ -8,9 +8,9 @@ if(NOT TARGET libdeps)
# HDF5
if(NOT DEFINED HDF5_C_LIBRARIES)
- set(HDF5_NO_FIND_PACKAGE_CONFIG_FILE TRUE) # Consistency
+ set(HDF5_NO_FIND_PACKAGE_CONFIG_FILE FALSE) # use config
set(HDF5_PREFER_PARALLEL ${HIGHFIVE_PARALLEL_HDF5})
- find_package(HDF5 REQUIRED)
+ find_package(HDF5 REQUIRED HINTS ${HDF5_ROOT})
endif()
if(HIGHFIVE_PARALLEL_HDF5 AND NOT HDF5_IS_PARALLEL)