Files
CMake/Help/variable/CMAKE_LANG_COMPILER_LINKER.rst
Marc Chevrier c26c6ac488 Link Step: compute effective linker used by the compiler
Extract the effective linker during the computation of implicit artifacts
delivered by the compiler to the linker.
Define various variables describing the linker:
* CMAKE_<LANG>_COMPILER_LINKER
* CMAKE_<LANG>_COMPILER_LINKER_VERSION
* CMAKE_<LANG>_COMPILER_LINKER_ID
* CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT

This is complementary to feature introduced by commit 96a953b1ed
(Add options to specify linker tool, 2023-09-27).

Fixes: #17596, #18209, #25344
2023-10-24 08:34:50 -04:00

16 lines
468 B
ReStructuredText

CMAKE_<LANG>_COMPILER_LINKER
----------------------------
.. versionadded:: 3.29
The full path to the linker for ``LANG``.
This is the command that will be used as the ``<LANG>`` linker.
This variable is not guaranteed to be defined for all linkers or languages.
.. note::
This variable is read-only. It must not be set by the user. To select a
specific linker, use the :variable:`CMAKE_LINKER_TYPE` variable or the
:prop_tgt:`LINKER_TYPE` target property.