Merge topic 'LINKER_TYPE-mold-support'

801ae06952 LINKER_TYPE: Support MOLD only on GCC versions that support it
939ac5287e LINKER_TYPE: fix spelling error in message
922883782b LINKER_TYPE: Document that linker tool should be in the PATH

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9334
This commit is contained in:
Brad King
2024-03-14 15:44:30 +00:00
committed by Kitware Robot
12 changed files with 57 additions and 14 deletions
@@ -9,6 +9,12 @@ property :prop_tgt:`LINKER_TYPE`. It can hold compiler flags for the link step
or directly the linker tool. The type of data is given by the variable
:variable:`CMAKE_<LANG>_USING_LINKER_MODE`.
.. note::
The specified linker tool is expected to be accessible through
the ``PATH`` environment variable, particularly when the
:variable:`CMAKE_<LANG>_USING_LINKER_MODE` variable is set to ``FLAG``.
For example, to specify the ``LLVM`` linker for ``GNU`` compilers, we have:
.. code-block:: cmake