From dbd1b94642e4113b0b18c6648978477a63761b3c Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 14 Apr 2020 14:45:54 +0200 Subject: [PATCH] Refactor policy settings (Needed by OPM/opm-common#1675) --- CMakeLists.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b67449f4..6051ada65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,16 +57,15 @@ endif() find_package(opm-common REQUIRED) -include(OpmInit) - -# not the same location as most of the other projects? this hook overrides -macro (dir_hook) -endmacro (dir_hook) - # project information is in dune.module. Read this file and set variables. # we cannot generate dune.module since it is read by dunecontrol before # the build starts, so it makes sense to keep the data there then. include (OpmInit) +OpmSetPolicies() +# not the same location as most of the other projects? this hook overrides +macro (dir_hook) +endmacro (dir_hook) + # list of prerequisites for this particular project; this is in a # separate file (in cmake/Modules sub-directory) because it is shared