FindOpenMP

FindOpenMP

Finds OpenMP support

This module can be used to detect OpenMP support in a compiler. If the compiler supports OpenMP, the flags required to compile with OpenMP support are returned in variables for the different languages. The variables may be empty if the compiler does not need a special flag to support OpenMP.

The following variables are set:

OpenMP_C_FLAGS
Flags to add to the C compiler for OpenMP support.
OpenMP_CXX_FLAGS
Flags to add to the CXX compiler for OpenMP support.
OpenMP_Fortran_FLAGS
Flags to add to the Fortran compiler for OpenMP support.
OPENMP_FOUND
True if openmp is detected.

The following internal variables are set, if detected:

OpenMP_C_SPEC_DATE
Specification date of OpenMP version of C compiler.
OpenMP_CXX_SPEC_DATE
Specification date of OpenMP version of CXX compiler.
OpenMP_Fortran_SPEC_DATE
Specification date of OpenMP version of Fortran compiler.

The specification dates are formatted as integers of the form CCYYMM where these represent the decimal digits of the century, year, and month.

© 2000–2017 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.8/module/FindOpenMP.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部