Skip to content
Snippets Groups Projects
Commit f841b8af authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Fix xdmf/hdf5 dependency in MeshLib.

parent ded400ff
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,9 @@ target_link_libraries(
PUBLIC BaseLib
GeoLib
GitInfoLib
${HDF5_LIBRARIES}
MathLib
${VTK_LIBRARIES}
$<$<TARGET_EXISTS:OgsXdmf>:OgsXdmf>
$<$<TARGET_EXISTS:MPI::MPI_CXX>:MPI::MPI_CXX>
$<$<TARGET_EXISTS:petsc>:petsc>
)
......
......@@ -211,6 +211,8 @@ else()
endif()
set(HDF5_C_INCLUDE_DIR ${HDF5_SOURCE_DIR})
set(HDF5_INCLUDE_DIR ${HDF5_SOURCE_DIR})
else()
find_package(HDF5 REQUIRED)
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment