summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetObjects/BadContext.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetObjects/BadContext.cmake')
-rw-r--r--Tests/RunCMake/TargetObjects/BadContext.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetObjects/BadContext.cmake b/Tests/RunCMake/TargetObjects/BadContext.cmake
index 67962a4..5d7e33e 100644
--- a/Tests/RunCMake/TargetObjects/BadContext.cmake
+++ b/Tests/RunCMake/TargetObjects/BadContext.cmake
@@ -1,4 +1,7 @@
+add_library(iface INTERFACE)
+target_sources(iface INTERFACE $<TARGET_OBJECTS:NoTarget>)
file(GENERATE OUTPUT test_output CONTENT $<TARGET_OBJECTS:NoTarget>)
+file(GENERATE OUTPUT test_output2 CONTENT $<TARGET_PROPERTY:iface,INTERFACE_SOURCES>)
install(FILES $<TARGET_OBJECTS:NoTarget> DESTINATION objects)