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

add_executable(mainexe empty.c)
add_library(mainlibUnknownImported UNKNOWN IMPORTED)

add_subdirectory(SubDirTarget-UNKNOWN-IMPORTED)

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