Skip to content

Commit

Permalink
correct hDF5 build paths
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 22, 2024
1 parent ceac296 commit 4860bdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/FindHDF5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,10 @@ endfunction(check_fortran_links)

function(check_hdf5_link)

# HDF5 bug #3663 for HDF5 1.14.2, 1.14.3, ...?
# HDF5 bug #3663 for HDF5 1.14.2, ...?
# https://github.com/HDFGroup/hdf5/issues/3663
if(WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
if(HDF5_VERSION MATCHES "1.14.[2-3]")
if(HDF5_VERSION MATCHES "1.14.[2-4]")
message(VERBOSE "FindHDF5: applying workaround for HDF5 bug #3663 with Intel oneAPI on Windows")
list(APPEND CMAKE_REQUIRED_LIBRARIES shlwapi)
endif()
Expand Down
2 changes: 1 addition & 1 deletion cmake/hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ foreach(_name IN ITEMS hdf5_hl_fortran hdf5_hl_f90cstub hdf5_fortran hdf5_f90cst
# need ${CMAKE_INSTALL_PREFIX}/lib as HDF5 doesn't use GNUInstallDirs
if(BUILD_SHARED_LIBS)
if(WIN32)
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_FULL_BINDIR}/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
else()
list(APPEND HDF5_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/lib${_name}${CMAKE_SHARED_LIBRARY_SUFFIX})
endif()
Expand Down

0 comments on commit 4860bdc

Please sign in to comment.