summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/GenerateDepFile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/BuildDepends/GenerateDepFile.cmake')
-rw-r--r--Tests/RunCMake/BuildDepends/GenerateDepFile.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/GenerateDepFile.cmake b/Tests/RunCMake/BuildDepends/GenerateDepFile.cmake
new file mode 100644
index 0000000..f7d0f13
--- /dev/null
+++ b/Tests/RunCMake/BuildDepends/GenerateDepFile.cmake
@@ -0,0 +1,6 @@
+file(READ "${INFILE}" INCONTENT)
+file(WRITE "${OUTFILE}" "${INCONTENT}")
+
+string(REPLACE [[ ]] [[\ ]] OUTFILE "${OUTFILE}")
+string(REPLACE [[ ]] [[\ ]] INFILE "${INFILE}")
+file(WRITE "${DEPFILE}" "${OUTFILE}: ${INFILE}\n")