summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-25 18:11:05 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-30 13:18:13 (GMT)
commit42e1cd137c0eff0297adaea5b34abca0da254eba (patch)
treecb0911144205f1bd269c157ed99c4bc2b630f0f2 /Tests/RunCMake/File_Generate/WriteIfDifferent.cmake
parent3c8226e590f252977e0ab79d7fe85b2fb9e7ef78 (diff)
downloadCMake-42e1cd137c0eff0297adaea5b34abca0da254eba.zip
CMake-42e1cd137c0eff0297adaea5b34abca0da254eba.tar.gz
CMake-42e1cd137c0eff0297adaea5b34abca0da254eba.tar.bz2
file(GENERATE): Only write the file if content is different.
No policy is used to control this behavior for now.
Diffstat (limited to 'Tests/RunCMake/File_Generate/WriteIfDifferent.cmake')
-rw-r--r--Tests/RunCMake/File_Generate/WriteIfDifferent.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake b/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake
new file mode 100644
index 0000000..d1d832a
--- /dev/null
+++ b/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake
@@ -0,0 +1,5 @@
+
+file(GENERATE
+ OUTPUT output_file.txt
+ CONTENT "123"
+)