mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'fix-target-alias-in-subdir'
0e44f489Rename local target lookup methods to clarify purposebc30f8b5Fix lookup of an ALIAS target outside aliased target's directory (#16044)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user