diff --git a/CMakeLists.txt b/CMakeLists.txt index 46d62c62..48a8936a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,8 +97,13 @@ include (UseOptimization) # dependencies, in case they alter the list of warnings include (UseWarnings) +# parallel computing must be explicitly enabled +option (USE_MPI "Use Message Passing Interface for parallel computing" OFF) +if (NOT USE_MPI) + set (CMAKE_DISABLE_FIND_PACKAGE_MPI TRUE) +endif (NOT USE_MPI) + ### --- begin opm-core specific --- ### -# parallel programming include (UseOpenMP) find_openmp (${project}) ### --- end opm-core specific --- ###