Files
CMake/Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope.c
Brad King 8437141b53 Genex: Fix TARGET_PROPERTY lookup scope in transitive usage requirements
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
2022-11-17 07:57:21 -05:00

13 lines
201 B
C

#ifndef SCOPED_A_1
# error "SCOPED_A_1 not defined"
#endif
#ifndef SCOPED_B_1
# error "SCOPED_B_1 not defined"
#endif
#ifndef SCOPED_A_2
# error "SCOPED_A_2 not defined"
#endif
void Scope(void)
{
}