diff --git a/cmake/Modules/OpmLibMain.cmake b/cmake/Modules/OpmLibMain.cmake index 2b2f658ac..f9e33eb1e 100644 --- a/cmake/Modules/OpmLibMain.cmake +++ b/cmake/Modules/OpmLibMain.cmake @@ -223,3 +223,10 @@ opm_dist_clean (${project}) ### emulate the with-xxx feature of autotools; include (OpmKnown) + +# make sure we rebuild if dune.module changes +configure_file ( + "${CMAKE_CURRENT_SOURCE_DIR}/dune.module" + "${CMAKE_CURRENT_BINARY_DIR}/dunemod.tmp" + COPYONLY + )