Skip to content

Propagate backtraces from LINK_LIBRARIES through to link line items

Brad King requested to merge brad.king/cmake:link-line-backtrace into master

Since !3805 (merged), backtraces have been collected by ComputeLinkLibs by looking back through the link implementation libraries for one matching the text of the link line item. This is slow in projects with long link lines.

Instead, teach cmComputeLinkDepends and cmComputeLinkInformation to carry backtrace information explicitly along with the text of each item.

Fixes: #20322 (closed)
Backport: release

Merge request reports