summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Help/variable/CMAKE_LANG_COMPILER_FRONTEND_VARIANT.rst
blob: 128b1fbbebe149dafeb7779bbb3f4275de62b681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CMAKE_<LANG>_COMPILER_FRONTEND_VARIANT
--------------------------------------

.. versionadded:: 3.14

Identification string of the compiler frontend variant.

Some compilers have multiple, different frontends for accepting command
line options.  (For example ``Clang`` originally only had a frontend
compatible with the ``GNU`` compiler but since its port to Windows
(``Clang-Cl``) it now also supports a frontend compatible with ``MSVC``.)
When CMake detects such a compiler it sets this
variable to what would have been the :variable:`CMAKE_<LANG>_COMPILER_ID` for
the compiler whose frontend it resembles.

.. note::
  In other words, this variable describes what command line options
  and language extensions the compiler frontend expects.