summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-26 13:43:40 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-06-26 13:43:55 (GMT)
commit529b818378843c8c3c6da807a79c1496c1acdb9a (patch)
tree7cbcf43e4a99d0e7e144a0960861dbe3ad797e59 /Help
parentf58c7659d8652c1172fc15a0bae9d71ee477c1eb (diff)
parent5945a98ced2e1f4794f26f39256c95d875220408 (diff)
downloadCMake-529b818378843c8c3c6da807a79c1496c1acdb9a.zip
CMake-529b818378843c8c3c6da807a79c1496c1acdb9a.tar.gz
CMake-529b818378843c8c3c6da807a79c1496c1acdb9a.tar.bz2
Merge topic 'link-depends-is-OFF' into release-3.27
5945a98ced link dependencies: deactivate the feature Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8587
Diffstat (limited to 'Help')
-rw-r--r--Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst
index e1b37a5..1867ad8 100644
--- a/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst
+++ b/Help/variable/CMAKE_LINK_DEPENDS_USE_LINKER.rst
@@ -10,3 +10,11 @@ variable with value ``FALSE``, you can deactivate this feature.
This feature is also deactivated if the :prop_tgt:`LINK_DEPENDS_NO_SHARED`
target property is true.
+
+.. note::
+
+ CMake version |release| defaults this variable to ``FALSE`` because
+ GNU binutils linkers (``ld``, ``ld.bfd``, ``ld.gold``) 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