diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0e579f199ba2e0854f56848bb23d384d4e666536..43f03518942889cb07e0241fda6e78a17e93499b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,4 +25,8 @@ add_subdirectory("cmake/modules")
 add_subdirectory("test")
 
 # finalize the dune project, e.g. generating config.h etc.
-finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
+if(dune-common_VERSION VERSION_GREATER_EQUAL 2.10.0)
+    finalize_dune_project()
+else()
+    finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
+endif()