From ed3541b5ae4ee25f9e93473164aa108b69db7f20 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Wed, 24 Feb 2016 18:13:21 +0100
Subject: [PATCH] [Cleanup] Fix up HDF5 cmake check

---
 CMakeLists.txt     | 2 +-
 src/CMakeLists.txt | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ce7beb31..76a4987f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 857c607e..d9da68c7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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()
 
-- 
GitLab