summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0051/CMP0051-WARN.cmake
blob: 744598fcbf05cd9a5f08eb14f2ec4f1a971ca450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

add_library(objects OBJECT empty.cpp)

add_library(empty empty.cpp $<TARGET_OBJECTS:objects>)

get_target_property(srcs empty SOURCES)

message("Sources: \"${srcs}\"")

add_subdirectory(CMP0051-WARN-Dir)

get_target_property(srcs empty2 SOURCES)

message("Sources: \"${srcs}\"")