fixed: wrong order of OpmInit and use of the USE_MPI option

This commit is contained in:
Arne Morten Kvarving 2023-03-08 12:38:22 +01:00
parent fc06fc77c3
commit 1ac2263bfb

View File

@ -91,13 +91,13 @@ endif()
find_package(opm-common REQUIRED) find_package(opm-common REQUIRED)
include(OpmInit)
OpmSetPolicies()
if(USE_MPI) if(USE_MPI)
set(HDF5_PREFER_PARALLEL TRUE) set(HDF5_PREFER_PARALLEL TRUE)
endif() endif()
include(OpmInit)
OpmSetPolicies()
# not the same location as most of the other projects? this hook overrides # not the same location as most of the other projects? this hook overrides
macro (dir_hook) macro (dir_hook)
endmacro (dir_hook) endmacro (dir_hook)