Skip to content
Snippets Groups Projects
Commit ed3541b5 authored by Elias Pipping's avatar Elias Pipping
Browse files

[Cleanup] Fix up HDF5 cmake check

parent b49506c0
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ dune_project()
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED system filesystem)
find_package(HDF5 REQUIRED)
find_package(HDF5 COMPONENTS C REQUIRED)
add_subdirectory("src")
add_subdirectory("dune")
......
......@@ -40,8 +40,6 @@ foreach(_dim 2 3)
set_property(TARGET ${_target} APPEND PROPERTY INCLUDE_DIRECTORIES ${HDF5_INCLUDE_DIR})
target_link_libraries(${_target} ${HDF5_LIBRARIES})
target_link_libraries(${_target} "dl") # FIXME: missing from HDF5_LIBRARIES
set_property(TARGET ${_target} APPEND PROPERTY COMPILE_DEFINITIONS "MY_DIM=${_dim}")
endforeach()
......
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