ecbuild_find_omp
DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
Find OpenMP.
ecbuild_find_omp( [ COMPONENTS <component1> [ <component2> ... ] ]
[ REQUIRED ]
[ STUBS ] )
Options
- COMPONENTSoptional, defaults to C
list of required languages bindings
- REQUIREDoptional
fail if OpenMP was not found
- STUBSoptional
search for OpenMP stubs
Output variables
The following CMake variables are set if OpenMP was found:
- OMP_FOUND:
OpenMP was found
For each language listed in COMPONENTS, the following variables are set:
- OMP_<LANG>_FOUND:
OpenMP bindings for LANG were found
- OMP_<LANG>_FLAGS:
OpenMP compiler flags for LANG
If the STUBS option was given, all variables are also set with the OMPSTUBS instead of the OMP prefix.
ecbuild_enable_omp
DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
Find OpenMP for C, C++ and Fortran and set the compiler flags for each language for which OpenMP support was detected.
ecbuild_enable_ompstubs
DEPRECATED: This macro is deprecated. Please use FindOpenMP directly.
Find OpenMP stubs for C, C++ and Fortran and set the compiler flags for each language for which OpenMP stubs were detected.