Skip to content

Commit

Permalink
Also add HDF5 library directories to MASTER_LINK_DIRS in Master.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Scott Berg committed Sep 29, 2023
1 parent 33ab882 commit 45ee929
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions util/Master.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ SET (MASTER_LINK_DIRS
${ACC_LIB_DIRS}
)

foreach(h5dir ${HDF5_Fortran_LIBRARY_DIRS})
list(FIND CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES "${h5dir}" h5found)
if (h5found EQUAL -1)
list(APPEND MASTER_LINK_DIRS "${h5dir}")
endif()
endforeach()

IF (DEBUG)
IF (IS_DIRECTORY "${PACKAGES_DIR}/debug/lib/root")
LIST (APPEND MASTER_LINK_DIRS "${PACKAGES_DIR}/debug/lib/root")
Expand Down

0 comments on commit 45ee929

Please sign in to comment.