Skip to content

cmComputeLinkDepends: upgrade object-only links to usage links

Commit 22da18b9 (Fortran: Restore support for TARGET_OBJECTS providing modules, 2023-10-27), merged via !8923 (merged) fixed support for gathering module information from $<TARGET_OBJECTS>-used libraries but forgot to consider that the link entries do not "upgrade" themselves in case such a target is also mentioned for usage requirements. Detect and upgrade such patterns.

Also add a test case.

Manual-backport: release-3.27

Fixes: #25417 (closed)
Backport: release

Edited by Brad King

Merge request reports