summaryrefslogtreecommitdiff
path: root/Tests/CMakeTests/ConfigureFile-Relative.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeTests/ConfigureFile-Relative.cmake')
-rw-r--r--Tests/CMakeTests/ConfigureFile-Relative.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ConfigureFile-Relative.cmake b/Tests/CMakeTests/ConfigureFile-Relative.cmake
new file mode 100644
index 000000000..532580a21
--- /dev/null
+++ b/Tests/CMakeTests/ConfigureFile-Relative.cmake
@@ -0,0 +1,4 @@
+file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/ConfigureFile-Relative-In.txt "Relative test file\n")
+configure_file(ConfigureFile-Relative-In.txt ConfigureFile-Relative-Out.txt)
+file(READ ${CMAKE_CURRENT_BINARY_DIR}/ConfigureFile-Relative-Out.txt out)
+message("${out}")