From 922883782bb0a3f80cdfb4d959ca11834b417d77 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Mon, 11 Mar 2024 18:10:43 +0100 Subject: LINKER_TYPE: Document that linker tool should be in the PATH Issue: #25748 --- Help/variable/CMAKE_LANG_USING_LINKER_TYPE.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Help/variable/CMAKE_LANG_USING_LINKER_TYPE.rst b/Help/variable/CMAKE_LANG_USING_LINKER_TYPE.rst index e4d9fa6..d4714c3 100644 --- a/Help/variable/CMAKE_LANG_USING_LINKER_TYPE.rst +++ b/Help/variable/CMAKE_LANG_USING_LINKER_TYPE.rst @@ -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__USING_LINKER_MODE`. +.. note:: + + The specified linker tool is expected to be accessible through + the ``PATH`` environment variable, particularly when the + :variable:`CMAKE__USING_LINKER_MODE` variable is set to ``FLAG``. + For example, to specify the ``LLVM`` linker for ``GNU`` compilers, we have: .. code-block:: cmake -- cgit v0.12