mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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
13 lines
201 B
C
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)
|
|
{
|
|
}
|