summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_libraries/SubDirTarget-UNKNOWN-IMPORTED-GLOBAL.cmake
blob: 04d64e6529e3bd4e09335da4f8e86314d984ca3a (plain)
1
2
3
4
5
6
7
8
9
10
11
enable_language(C)

add_executable(mainexe empty.c)
add_library(mainlibUnknownImportedGlobal UNKNOWN IMPORTED GLOBAL)

add_subdirectory(SubDirTarget-UNKNOWN-IMPORTED-GLOBAL)

target_link_libraries(subexe mainlibUnknownImportedGlobal)
target_link_libraries(subexe sublibUnknownImportedGlobal)
get_property(subexe_libs TARGET subexe PROPERTY INTERFACE_LINK_LIBRARIES)
message(STATUS "subexe: ${subexe_libs}")