summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorRobert Dailey <rcdailey@gmail.com>2017-07-28 10:48:45 -0500
committerBrad King <brad.king@kitware.com>2017-08-03 14:11:26 -0400
commitd7472bbf16485e895753c01cc16b576eab823c7e (patch)
tree9ead571c2b2a8f27d8acbfb33095066d0d851ef5 /Help
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadcmake-d7472bbf16485e895753c01cc16b576eab823c7e.tar.gz
file: Clarify directory creation behavior when using WRITE
When using `file(WRITE)`, parent directories are also created. Documentation has been updated to explain this behavior. Co-Author: Craig Scott <craig.scott@crascit.com>
Diffstat (limited to 'Help')
-rw-r--r--Help/command/file.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index b2e4eea444..e7a5d50e11 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -13,8 +13,11 @@ File manipulation command.
Write ``<content>`` into a file called ``<filename>``. If the file does
not exist, it will be created. If the file already exists, ``WRITE``
mode will overwrite it and ``APPEND`` mode will append to the end.
-(If the file is a build input, use the :command:`configure_file` command
-to update the file only when its content changes.)
+Any directories in the path specified by ``<filename>`` that do not
+exist will be created.
+
+If the file is a build input, use the :command:`configure_file` command
+to update the file only when its content changes.
------------------------------------------------------------------------------