CMake/Tests/ImportedSameName/CMakeLists.txt
Brad King bea390e9bd Fix dependency propagation through same-name imported targets
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
2018-09-07 09:23:43 -04:00

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)