From 6b457588cb404b1eeec615a52bd6c6ce9996fa66 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Fri, 29 Jan 2021 12:14:23 +0100
Subject: [PATCH] reset some changes regarding config.h.cmake file

---
 CMakeLists.txt                 | 2 +-
 cmake/modules/DuneMacros.cmake | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 700942b6d..499676d06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,4 +28,4 @@ if(DUNE_ENABLE_PYTHONBINDINGS)
 endif()
 
 # finalize the dune project, e.g. generating config.h etc.
-finalize_dune_project(MODULE_CONFIG_H)
+finalize_dune_project()
diff --git a/cmake/modules/DuneMacros.cmake b/cmake/modules/DuneMacros.cmake
index d4ae13a2f..60f9f6a3a 100644
--- a/cmake/modules/DuneMacros.cmake
+++ b/cmake/modules/DuneMacros.cmake
@@ -931,7 +931,7 @@ endif()
   # install pkg-config files
   create_and_install_pkconfig(${DUNE_INSTALL_LIBDIR})
 
-  if("${ARGC}" GREATER "1" AND "${ARGV0}" STREQUAL "GLOBAL_CONFIG_H")
+  if("${ARGC}" GREATER "1")
     message(STATUS "Adding custom target for config.h generation")
     dune_regenerate_config_cmake()
     # add a target to generate config.h.cmake
-- 
GitLab