cmake/Help/variable/CMAKE_LANG_COMPILER_LINKER_FRONTEND_VARIANT.rst
2024-04-14 22:45:38 +02:00

19 lines
762 B
ReStructuredText

CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT
---------------------------------------------
.. versionadded:: 3.29
Identification string of the linker frontend variant.
Some linkers have multiple, different frontends for accepting command
line options. For example, ``LLVM LLD`` originally only had a frontend
compatible with the ``GNU`` compiler, but since its port to Windows
(``lld-link``), it now also supports a frontend compatible with ``MSVC``.
When CMake detects such a linker, it sets this variable to what would have been
the :variable:`CMAKE_<LANG>_COMPILER_LINKER_ID` for the linker whose frontend
it resembles.
.. note::
In other words, this variable describes what command line options
and language extensions the linker frontend expects.