diff options
author | Brad King <brad.king@kitware.com> | 2022-11-15 15:53:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-17 12:57:21 (GMT) |
commit | 8437141b53919619f6d21f5f446d26df42373c68 (patch) | |
tree | 025fe7b9aea2bbdd4504304463ea7299bd4b4d9f /Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt | |
parent | d22a225251ebc10323e934a8790984dcbbb9b18a (diff) | |
download | CMake-8437141b53919619f6d21f5f446d26df42373c68.zip CMake-8437141b53919619f6d21f5f446d26df42373c68.tar.gz CMake-8437141b53919619f6d21f5f446d26df42373c68.tar.bz2 |
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
Diffstat (limited to 'Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt')
-rw-r--r-- | Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt b/Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt new file mode 100644 index 0000000..fefad22 --- /dev/null +++ b/Tests/RunCMake/GenEx-TARGET_PROPERTY/Scope-build-stdout.txt @@ -0,0 +1,6 @@ +.*iface scope1: 'SCOPED_A_1;SCOPED_B_1' +.*iface scope2: 'SCOPED_A_2' +.*iface scope2 in scope1: 'SCOPED_A_2' +.*custom scope1: 'SCOPED_A_1;SCOPED_B_1' +.*custom scope2: 'SCOPED_A_2' +.*custom scope2 in scope1: 'SCOPED_A_1' |