diff options
author | Brad King <brad.king@kitware.com> | 2024-05-24 14:31:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-05-24 14:31:52 (GMT) |
commit | 7b38a1dee7f4bd43115bbb179e7e4715ff3bbdc1 (patch) | |
tree | d014ef4658e5a2dc125863c92f347205da0d8023 /Help | |
parent | 88f30da5a047d428c5356826fd9bf2aab85ab489 (diff) | |
parent | af81b8667e627457550cc26ab5696d1e46293162 (diff) | |
download | CMake-7b38a1dee7f4bd43115bbb179e7e4715ff3bbdc1.zip CMake-7b38a1dee7f4bd43115bbb179e7e4715ff3bbdc1.tar.gz CMake-7b38a1dee7f4bd43115bbb179e7e4715ff3bbdc1.tar.bz2 |
Merge topic 'genex-compiler-frontend-variant'
af81b8667e GenEx: Add generator expr. for CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT
8a11a39c51 Help: Use correct programming language names in docs of generator expr.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9538
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 139 | ||||
-rw-r--r-- | Help/release/dev/genex-compiler-frontend-variant.rst | 6 |
2 files changed, 132 insertions, 13 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index bc32452..26a4a60 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -967,7 +967,7 @@ closely related to the expressions in this sub-section. .. genex:: $<CXX_COMPILER_VERSION:version> - ``1`` if the version of the CXX compiler matches ``version``, otherwise ``0``. + ``1`` if the version of the C++ compiler matches ``version``, otherwise ``0``. .. genex:: $<CUDA_COMPILER_VERSION> @@ -979,31 +979,31 @@ closely related to the expressions in this sub-section. .. versionadded:: 3.15 - ``1`` if the version of the CXX compiler matches ``version``, otherwise ``0``. + ``1`` if the version of the C++ compiler matches ``version``, otherwise ``0``. .. genex:: $<OBJC_COMPILER_VERSION> .. versionadded:: 3.16 - The version of the OBJC compiler used. + The version of the Objective-C compiler used. .. genex:: $<OBJC_COMPILER_VERSION:version> .. versionadded:: 3.16 - ``1`` if the version of the OBJC compiler matches ``version``, otherwise ``0``. + ``1`` if the version of the Objective-C compiler matches ``version``, otherwise ``0``. .. genex:: $<OBJCXX_COMPILER_VERSION> .. versionadded:: 3.16 - The version of the OBJCXX compiler used. + The version of the Objective-C++ compiler used. .. genex:: $<OBJCXX_COMPILER_VERSION:version> .. versionadded:: 3.16 - ``1`` if the version of the OBJCXX compiler matches ``version``, otherwise ``0``. + ``1`` if the version of the Objective-C++ compiler matches ``version``, otherwise ``0``. .. genex:: $<Fortran_COMPILER_VERSION> @@ -1037,10 +1037,11 @@ closely related to the expressions in this sub-section. ``1`` if the version of the ISPC compiler matches ``version``, otherwise ``0``. -Compiler Language And ID -^^^^^^^^^^^^^^^^^^^^^^^^ +Compiler Language, ID, and Frontend-Variant +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -See also the :variable:`CMAKE_<LANG>_COMPILER_ID` variable, which is closely +See also the :variable:`CMAKE_<LANG>_COMPILER_ID` and +:variable:`CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT` variables, which are closely related to most of the expressions in this sub-section. .. genex:: $<C_COMPILER_ID> @@ -1059,12 +1060,12 @@ related to most of the expressions in this sub-section. .. genex:: $<CXX_COMPILER_ID> - CMake's compiler id of the CXX compiler used. + CMake's compiler id of the C++ compiler used. .. genex:: $<CXX_COMPILER_ID:compiler_ids> where ``compiler_ids`` is a comma-separated list. - ``1`` if CMake's compiler id of the CXX compiler matches any one + ``1`` if CMake's compiler id of the C++ compiler matches any one of the entries in ``compiler_ids``, otherwise ``0``. .. versionchanged:: 3.15 @@ -1089,7 +1090,7 @@ related to most of the expressions in this sub-section. .. versionadded:: 3.16 - CMake's compiler id of the OBJC compiler used. + CMake's compiler id of the Objective-C compiler used. .. genex:: $<OBJC_COMPILER_ID:compiler_ids> @@ -1103,7 +1104,7 @@ related to most of the expressions in this sub-section. .. versionadded:: 3.16 - CMake's compiler id of the OBJCXX compiler used. + CMake's compiler id of the Objective-C++ compiler used. .. genex:: $<OBJCXX_COMPILER_ID:compiler_ids> @@ -1155,6 +1156,118 @@ related to most of the expressions in this sub-section. ``1`` if CMake's compiler id of the ISPC compiler matches any one of the entries in ``compiler_ids``, otherwise ``0``. +.. genex:: $<C_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler frontend variant of the C compiler used. + +.. genex:: $<C_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the C compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<CXX_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler frontend variant of the C++ compiler used. + +.. genex:: $<CXX_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the C++ compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<CUDA_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler id of the CUDA compiler used. + +.. genex:: $<CUDA_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the CUDA compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<OBJC_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler frontend variant of the Objective-C compiler used. + +.. genex:: $<OBJC_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the Objective-C compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<OBJCXX_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler frontend variant of the Objective-C++ compiler used. + +.. genex:: $<OBJCXX_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the Objective-C++ compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<Fortran_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler id of the Fortran compiler used. + +.. genex:: $<Fortran_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the Fortran compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<HIP_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler id of the HIP compiler used. + +.. genex:: $<HIP_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the HIP compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + +.. genex:: $<ISPC_COMPILER_FRONTEND_VARIANT> + + .. versionadded:: 3.30 + + CMake's compiler id of the ISPC compiler used. + +.. genex:: $<ISPC_COMPILER_FRONTEND_VARIANT:compiler_ids> + + .. versionadded:: 3.30 + + where ``compiler_ids`` is a comma-separated list. + ``1`` if CMake's compiler frontend variant of the ISPC compiler matches any one + of the entries in ``compiler_ids``, otherwise ``0``. + .. genex:: $<COMPILE_LANGUAGE> .. versionadded:: 3.3 diff --git a/Help/release/dev/genex-compiler-frontend-variant.rst b/Help/release/dev/genex-compiler-frontend-variant.rst new file mode 100644 index 0000000..221f278 --- /dev/null +++ b/Help/release/dev/genex-compiler-frontend-variant.rst @@ -0,0 +1,6 @@ +genex-compiler-frontent-variant +------------------------------- + +* Generator expressions ``$<<LANG>_COMPILER_FRONTEND_VARIANT:...>`` were added that allow + access to the value of the associated :variable:`CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT` + variables. |