Merge topic 'link-depends-is-OFF'

5945a98ced link dependencies: deactivate the feature

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8587
This commit is contained in:
Brad King
2023-06-26 13:43:40 +00:00
committed by Kitware Robot
4 changed files with 22 additions and 6 deletions
@@ -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