summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-04 13:16:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-04 13:16:46 (GMT)
commitb745cb3e55298ab7d899e94ef2a89a59035874cb (patch)
tree212bf024bb8e234f391aecd2ae8940b134054f7b /Help/command
parent70c326f0f1c0ecabc2f8079e2fe3e8205347682b (diff)
parentd7472bbf16485e895753c01cc16b576eab823c7e (diff)
downloadCMake-b745cb3e55298ab7d899e94ef2a89a59035874cb.zip
CMake-b745cb3e55298ab7d899e94ef2a89a59035874cb.tar.gz
CMake-b745cb3e55298ab7d899e94ef2a89a59035874cb.tar.bz2
Merge topic 'file_WRITE_docs'
d7472bbf file: Clarify directory creation behavior when using WRITE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1088
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 9cdce80..edccac5 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.
------------------------------------------------------------------------------