summaryrefslogtreecommitdiffstats
path: root/Tests/AliasTarget
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-05 13:37:59 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-04-05 13:37:59 (GMT)
commitadea45e15abf95b53e13ea8564cad9fc8e35ed56 (patch)
treeb8a655cd4d53b8cb5a691b6f88c3f825f617d157 /Tests/AliasTarget
parent6c60f116cb2bfe6753f526ceacfb5e54bc22efc5 (diff)
parent0e44f4894f23d5eccd8d360f3420c832f9433a20 (diff)
downloadCMake-adea45e15abf95b53e13ea8564cad9fc8e35ed56.zip
CMake-adea45e15abf95b53e13ea8564cad9fc8e35ed56.tar.gz
CMake-adea45e15abf95b53e13ea8564cad9fc8e35ed56.tar.bz2
Merge topic 'fix-target-alias-in-subdir'
0e44f489 Rename local target lookup methods to clarify purpose bc30f8b5 Fix lookup of an ALIAS target outside aliased target's directory (#16044)
Diffstat (limited to 'Tests/AliasTarget')
-rw-r--r--Tests/AliasTarget/subdir/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/AliasTarget/subdir/CMakeLists.txt b/Tests/AliasTarget/subdir/CMakeLists.txt
index 8c84aea..05a7d86 100644
--- a/Tests/AliasTarget/subdir/CMakeLists.txt
+++ b/Tests/AliasTarget/subdir/CMakeLists.txt
@@ -1,3 +1,8 @@
add_library(tgt STATIC empty.cpp)
add_library(Sub::tgt ALIAS tgt)
+
+# foo comes from the top-level CMakeLists.txt
+add_library(Top::foo ALIAS foo)
+get_target_property(some_prop Top::foo SOME_PROP)
+target_link_libraries(tgt Top::foo)