summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMP0026/CMP0026-OLD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0026/CMP0026-OLD.cmake')
-rw-r--r--Tests/RunCMake/CMP0026/CMP0026-OLD.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0026/CMP0026-OLD.cmake b/Tests/RunCMake/CMP0026/CMP0026-OLD.cmake
new file mode 100644
index 0000000000..80497a304b
--- /dev/null
+++ b/Tests/RunCMake/CMP0026/CMP0026-OLD.cmake
@@ -0,0 +1,12 @@
+enable_language(CXX)
+
+cmake_policy(SET CMP0026 OLD)
+
+set(out ${CMAKE_CURRENT_BINARY_DIR}/out.txt)
+
+add_library(somelib empty.cpp ${out})
+get_target_property(_loc somelib LOCATION)
+
+file(WRITE "${out}"
+ "source file written by project code after getting target LOCATION\n"
+ )