From 406874bf6bacc5ec47e2787aeac322e84e1c2ae6 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 7 Mar 2013 13:51:57 +0100 Subject: [PATCH] Probe explicitly for OpenMP opm-core contains code which has #pragma omp. Earlier, OpenMP was detected as part of the probe for ERT. However, that probe got smarter, and as a result doesn't probe for more than it needs. Thus, we need to check for OpenMP explicitly in opm-core. (It is disabled by default) --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b04af27..72e33b97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,12 @@ include (UseOptimization) # dependencies, in case they alter the list of warnings include (UseWarnings) +### --- begin opm-core specific --- ### +# parallel programming +include (UseOpenMP) +find_openmp (${project}) +### --- end opm-core specific --- ### + # macro to set standard variables (INCLUDE_DIRS, LIBRARIES etc.) include (OpmFind) find_and_append_package_list_to (${project} ${${project}_DEPS})