Skip to content

Genex: Fix TARGET_PROPERTY lookup scope in transitive usage requirements

Brad King requested to merge brad.king/cmake:genex-TARGET_PROPERTY-scope into master

When $<TARGET_PROPERTY:tgt,prop> is used in an INTERFACE_* target property for usage requirements, it may be evaluated in the context of a dependent target in another directory. Look up the tgt name in the directory of the target whose property holds the expression so that imported targets isolated to that directory are visible.

Fixes: #24163 (closed)

Merge request reports