diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ac87d36e7c42cad59b968f8d6cc6c4de5c753e8..fd655e11bb09497ef6e5bf5e0ecca6a447d1ebce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,6 @@ include(DuneMacros)
 # start a dune project with information from dune.module
 dune_project()
 
-set(HDF5_USE_STATIC_LIBRARIES ON)
 find_package(HDF5 COMPONENTS C REQUIRED)
 
 add_subdirectory("src")