summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake')
-rw-r--r--Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake b/Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake
new file mode 100644
index 0000000..464df36
--- /dev/null
+++ b/Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake
@@ -0,0 +1,13 @@
+
+cmake_policy(SET CMP0026 OLD)
+
+add_library(objlib OBJECT
+ empty_1.cpp
+)
+
+add_executable(my_exe
+ empty_2.cpp
+ $<TARGET_OBJECTS:objlib>
+)
+
+get_target_property( loc my_exe LOCATION)