mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
16 lines
468 B
ReStructuredText
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.
|