mirror of
https://github.com/reactos/CMake.git
synced 2025-02-27 15:36:40 +00:00

If two imported targets in different directories have the same name we should still be able to propagate transitive link dependencies from both. Fix the target and link dependency analyzers to de-duplicate targets using target pointers rather than target names since the pointers will not be duplicated even if the names are. Issue: #18345
9 lines
209 B
CMake
9 lines
209 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
project(ImportedSameName C)
|
|
|
|
add_subdirectory(A)
|
|
add_subdirectory(B)
|
|
|
|
add_executable(ImportedSameName main.c)
|
|
target_link_libraries(ImportedSameName PRIVATE ifaceA ifaceB)
|