Explicitly linking against HDF5 libs to try to be more accomodating

This commit is contained in:
Jeffrey Garretson
2021-04-26 14:28:19 -06:00
parent f91e92633d
commit c6d20be944

View File

@@ -107,5 +107,7 @@ if(ENABLE_MPI)
endif()
# no matching flag for GNU
set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER})
# we changed compiler, link HDF5 libraries
link_libraries(${HDF5_Fortran_LIBRARIES} ${HDF5_Fortran_HL_LIBRARIES})
endif()