Skip to content

Commit 4860bdc

Browse files
committed
correct hDF5 build paths
1 parent ceac296 commit 4860bdc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake/FindHDF5.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,10 @@ endfunction(check_fortran_links)
743743

744744
function(check_hdf5_link)
745745

746-
# HDF5 bug #3663 for HDF5 1.14.2, 1.14.3, ...?
746+
# HDF5 bug #3663 for HDF5 1.14.2, ...?
747747
# https://github.com/HDFGroup/hdf5/issues/3663
748748
if(WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
749-
if(HDF5_VERSION MATCHES "1.14.[2-3]")
749+
if(HDF5_VERSION MATCHES "1.14.[2-4]")
750750
message(VERBOSE "FindHDF5: applying workaround for HDF5 bug #3663 with Intel oneAPI on Windows")
751751
list(APPEND CMAKE_REQUIRED_LIBRARIES shlwapi)
752752
endif()

cmake/hdf5.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ foreach(_name IN ITEMS hdf5_hl_fortran hdf5_hl_f90cstub hdf5_fortran hdf5_f90cst
1818
# need ${CMAKE_INSTALL_PREFIX}/lib as HDF5 doesn't use GNUInstallDirs
1919
if(BUILD_SHARED_LIBS)
2020
if(WIN32)
21-
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
21+
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_FULL_BINDIR}/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
2222
else()
2323
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
2424
endif()

0 commit comments

Comments
 (0)