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)
This commit is contained in:
Roland Kaufmann 2013-03-07 13:51:57 +01:00
parent 66d1f396f8
commit 406874bf6b

View File

@ -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})