summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetSources/RelativePathInInterface.cmake')
-rw-r--r--Tests/RunCMake/TargetSources/RelativePathInInterface.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake b/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
index 8bb6149..0d3e9a4 100644
--- a/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
+++ b/Tests/RunCMake/TargetSources/RelativePathInInterface.cmake
@@ -1,6 +1,10 @@
+cmake_policy(SET CMP0076 NEW)
add_library(iface INTERFACE)
target_sources(iface INTERFACE empty_1.cpp)
+get_property(iface_sources TARGET iface PROPERTY INTERFACE_SOURCES)
+message(STATUS "iface: ${iface_sources}")
+
add_executable(main main.cpp)
target_link_libraries(main iface)