Browse Source

Merge topic 'Help-CMAKE_LINK_DEPENDS_USE_LINKER' into release-3.31

686698a7b4 Help: Update note relative the GNU binutils linkers

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9938
Brad King 1 year ago
parent
commit
8e99e70297
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst

+ 3 - 2
Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst

@@ -13,8 +13,9 @@ target property is true.
 
 .. note::
 
-  CMake version |release| defaults this variable to ``FALSE`` because
-  GNU binutils linkers (``ld``, ``ld.bfd``, ``ld.gold``) generate spurious
+  CMake version |release| defaults this variable to ``FALSE`` if the linker is
+  one from the GNU binutils linkers (``ld`` and ``ld.bfd`` for version less
+  than 2.41 or ``ld.gold`` for any version) because it generate spurious
   dependencies on temporary files when LTO is enabled.  See `GNU bug 30568`_.
 
 .. _`GNU bug 30568`: https://sourceware.org/bugzilla/show_bug.cgi?id=30568