File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -466,13 +466,6 @@ function(_HDF5_select_imported_config target imported_conf)
466466 set (${imported_conf} ${_imported_conf} PARENT_SCOPE)
467467endfunction ()
468468
469-
470- if (HDF5_ROOT OR ENV{HDF5_ROOT})
471- set (_HDF5_SEARCH_OPTS NO_DEFAULT_PATH)
472- else ()
473- set (_HDF5_SEARCH_OPTS)
474- endif ()
475-
476469# Try to find HDF5 using an installed hdf5-config.cmake
477470if (NOT HDF5_FOUND AND NOT HDF5_NO_FIND_PACKAGE_CONFIG_FILE)
478471 find_package (HDF5 QUIET NO_MODULE
@@ -863,12 +856,25 @@ if( NOT HDF5_FOUND )
863856 PATH_SUFFIXES lib Lib ${_lib_suffixes}
864857 ${_HDF5_SEARCH_OPTS}
865858 )
859+
860+ # Fix for libhdf_hl_fortran in 1.10.6, needed for Windows specifically
861+ if ("hdf5hl_fortran" IN_LIST THIS_LIBRARY_SEARCH_RELEASE)
862+ list (APPEND THIS_LIBRARY_SEARCH_RELEASE hdf5_hl_fortran)
863+ endif ()
864+ # message(CHECK_START "looking for: ${THIS_LIBRARY_SEARCH_RELEASE}")
865+
866866 find_library (HDF5_${LIB} _LIBRARY_RELEASE
867867 NAMES ${THIS_LIBRARY_SEARCH_RELEASE}
868868 PATH_SUFFIXES lib Lib ${_lib_suffixes}
869869 ${_HDF5_SEARCH_OPTS}
870870 )
871871
872+ # if(HDF5_${LIB}_LIBRARY_RELEASE)
873+ # message(CHECK_PASS "found")
874+ # else()
875+ # message(CHECK_FAIL "not found")
876+ # endif()
877+
872878 select_library_configurations( HDF5_${LIB} )
873879 list (APPEND HDF5_${__lang} _HL_LIBRARIES ${HDF5_${LIB} _LIBRARY})
874880 endforeach ()
You can’t perform that action at this time.
0 commit comments