"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Modules/FindOpenMP.cmake" between
cmake-3.13.4.tar.gz and cmake-3.14.0-rc1.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software. Release candidate.

FindOpenMP.cmake  (cmake-3.13.4):FindOpenMP.cmake  (cmake-3.14.0-rc1)
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details. # file Copyright.txt or https://cmake.org/licensing for details.
#.rst: #[=======================================================================[.rst:
# FindOpenMP FindOpenMP
# ---------- ----------
#
# Finds OpenMP support Finds OpenMP support
#
# This module can be used to detect OpenMP support in a compiler. If This module can be used to detect OpenMP support in a compiler. If
# the compiler supports OpenMP, the flags required to compile with the compiler supports OpenMP, the flags required to compile with
# OpenMP support are returned in variables for the different languages. OpenMP support are returned in variables for the different languages.
# The variables may be empty if the compiler does not need a special The variables may be empty if the compiler does not need a special
# flag to support OpenMP. flag to support OpenMP.
#
# Variables Variables
# ^^^^^^^^^ ^^^^^^^^^
#
# The module exposes the components ``C``, ``CXX``, and ``Fortran``. The module exposes the components ``C``, ``CXX``, and ``Fortran``.
# Each of these controls the various languages to search OpenMP support for. Each of these controls the various languages to search OpenMP support for.
#
# Depending on the enabled components the following variables will be set: Depending on the enabled components the following variables will be set:
#
# ``OpenMP_FOUND`` ``OpenMP_FOUND``
# Variable indicating that OpenMP flags for all requested languages have been Variable indicating that OpenMP flags for all requested languages have been fo
found. und.
# If no components are specified, this is true if OpenMP settings for all enab If no components are specified, this is true if OpenMP settings for all enable
led languages d languages
# were detected. were detected.
# ``OpenMP_VERSION`` ``OpenMP_VERSION``
# Minimal version of the OpenMP standard detected among the requested language Minimal version of the OpenMP standard detected among the requested languages,
s, or all enabled languages if no components were specified.
# or all enabled languages if no components were specified.
# This module will set the following variables per language in your
# This module will set the following variables per language in your project, where ``<lang>`` is one of C, CXX, or Fortran:
# project, where ``<lang>`` is one of C, CXX, or Fortran:
# ``OpenMP_<lang>_FOUND``
# ``OpenMP_<lang>_FOUND`` Variable indicating if OpenMP support for ``<lang>`` was detected.
# Variable indicating if OpenMP support for ``<lang>`` was detected. ``OpenMP_<lang>_FLAGS``
# ``OpenMP_<lang>_FLAGS`` OpenMP compiler flags for ``<lang>``, separated by spaces.
# OpenMP compiler flags for ``<lang>``, separated by spaces.
# For linking with OpenMP code written in ``<lang>``, the following
# For linking with OpenMP code written in ``<lang>``, the following variables are provided:
# variables are provided:
# ``OpenMP_<lang>_LIB_NAMES``
# ``OpenMP_<lang>_LIB_NAMES`` :ref:`;-list <CMake Language Lists>` of libraries for OpenMP programs for ``<l
# :ref:`;-list <CMake Language Lists>` of libraries for OpenMP programs for `` ang>``.
<lang>``. ``OpenMP_<libname>_LIBRARY``
# ``OpenMP_<libname>_LIBRARY`` Location of the individual libraries needed for OpenMP support in ``<lang>``.
# Location of the individual libraries needed for OpenMP support in ``<lang>`` ``OpenMP_<lang>_LIBRARIES``
. A list of libraries needed to link with OpenMP code written in ``<lang>``.
# ``OpenMP_<lang>_LIBRARIES``
# A list of libraries needed to link with OpenMP code written in ``<lang>``. Additionally, the module provides :prop_tgt:`IMPORTED` targets:
#
# Additionally, the module provides :prop_tgt:`IMPORTED` targets: ``OpenMP::OpenMP_<lang>``
# Target for using OpenMP from ``<lang>``.
# ``OpenMP::OpenMP_<lang>``
# Target for using OpenMP from ``<lang>``. Specifically for Fortran, the module sets the following variables:
#
# Specifically for Fortran, the module sets the following variables: ``OpenMP_Fortran_HAVE_OMPLIB_HEADER``
# Boolean indicating if OpenMP is accessible through ``omp_lib.h``.
# ``OpenMP_Fortran_HAVE_OMPLIB_HEADER`` ``OpenMP_Fortran_HAVE_OMPLIB_MODULE``
# Boolean indicating if OpenMP is accessible through ``omp_lib.h``. Boolean indicating if OpenMP is accessible through the ``omp_lib`` Fortran mod
# ``OpenMP_Fortran_HAVE_OMPLIB_MODULE`` ule.
# Boolean indicating if OpenMP is accessible through the ``omp_lib`` Fortran m
odule. The module will also try to provide the OpenMP version variables:
#
# The module will also try to provide the OpenMP version variables: ``OpenMP_<lang>_SPEC_DATE``
# Date of the OpenMP specification implemented by the ``<lang>`` compiler.
# ``OpenMP_<lang>_SPEC_DATE`` ``OpenMP_<lang>_VERSION_MAJOR``
# Date of the OpenMP specification implemented by the ``<lang>`` compiler. Major version of OpenMP implemented by the ``<lang>`` compiler.
# ``OpenMP_<lang>_VERSION_MAJOR`` ``OpenMP_<lang>_VERSION_MINOR``
# Major version of OpenMP implemented by the ``<lang>`` compiler. Minor version of OpenMP implemented by the ``<lang>`` compiler.
# ``OpenMP_<lang>_VERSION_MINOR`` ``OpenMP_<lang>_VERSION``
# Minor version of OpenMP implemented by the ``<lang>`` compiler. OpenMP version implemented by the ``<lang>`` compiler.
# ``OpenMP_<lang>_VERSION``
# OpenMP version implemented by the ``<lang>`` compiler. The specification date is formatted as given in the OpenMP standard:
# ``yyyymm`` where ``yyyy`` and ``mm`` represents the year and month of
# The specification date is formatted as given in the OpenMP standard: the OpenMP specification implemented by the ``<lang>`` compiler.
# ``yyyymm`` where ``yyyy`` and ``mm`` represents the year and month of #]=======================================================================]
# the OpenMP specification implemented by the ``<lang>`` compiler.
cmake_policy(PUSH) cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW) # if() recognizes numbers and booleans cmake_policy(SET CMP0012 NEW) # if() recognizes numbers and booleans
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
cmake_policy(SET CMP0057 NEW) # if IN_LIST cmake_policy(SET CMP0057 NEW) # if IN_LIST
function(_OPENMP_FLAG_CANDIDATES LANG) function(_OPENMP_FLAG_CANDIDATES LANG)
if(NOT OpenMP_${LANG}_FLAG) if(NOT OpenMP_${LANG}_FLAG)
unset(OpenMP_FLAG_CANDIDATES) unset(OpenMP_FLAG_CANDIDATES)
 End of changes. 1 change blocks. 
78 lines changed or deleted 77 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)