summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorRobert Dailey <rcdailey@gmail.com>2017-07-28 15:48:45 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-03 18:11:26 (GMT)
commitd7472bbf16485e895753c01cc16b576eab823c7e (patch)
tree9ead571c2b2a8f27d8acbfb33095066d0d851ef5 /Help/command
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadCMake-d7472bbf16485e895753c01cc16b576eab823c7e.zip
CMake-d7472bbf16485e895753c01cc16b576eab823c7e.tar.gz
CMake-d7472bbf16485e895753c01cc16b576eab823c7e.tar.bz2
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/command')
-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 b2e4eea..e7a5d50 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.
------------------------------------------------------------------------------