mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
If two imported targets in different directories have the same name we should still be able to propagate transitive usage requirements from both. Fix the DAG checker to work with target pointers instead of target names since the pointers will not be duplicated even if the names are. Fixes: #18345
9 lines
238 B
CMake
9 lines
238 B
CMake
add_library(b STATIC b.c)
|
|
target_compile_definitions(b INTERFACE DEF_B)
|
|
|
|
add_library(sameName INTERFACE IMPORTED)
|
|
target_link_libraries(sameName INTERFACE b)
|
|
|
|
add_library(ifaceB INTERFACE)
|
|
target_link_libraries(ifaceB INTERFACE sameName)
|