summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-03 13:08:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-06-03 13:08:52 (GMT)
commitd1cf2a2206fc86ef11a4553a890824f552362de5 (patch)
tree511fd991016434197fc1139fbe05fd0ed9a59ce8 /Help
parent640a167d0360e6be10fbeadd80c5c28a14e3ea5c (diff)
parent7c516f7e28813a1ed66a4fd0a94d8a56b611eeef (diff)
downloadCMake-d1cf2a2206fc86ef11a4553a890824f552362de5.zip
CMake-d1cf2a2206fc86ef11a4553a890824f552362de5.tar.gz
CMake-d1cf2a2206fc86ef11a4553a890824f552362de5.tar.bz2
Merge topic 'file-accept-empty-lists'
7c516f7e28 file(): TOUCH, TOUCH_NOCREATE and MAKE_DIRECTORY accept empty lists Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9570
Diffstat (limited to 'Help')
-rw-r--r--Help/command/file.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index ef49faa..5b9dfac 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -192,6 +192,10 @@ Writing
With ``TOUCH`` and ``TOUCH_NOCREATE``, the contents of an existing file
will not be modified.
+ .. versionchanged:: 3.30
+ ``<files>`` can be an empty list. CMake 3.29 and earlier required
+ at least one file to be given.
+
.. signature::
file(GENERATE [...])
@@ -398,6 +402,10 @@ Filesystem
Create the given directories and their parents as needed.
+ .. versionchanged:: 3.30
+ ``<directories>`` can be an empty list. CMake 3.29 and earlier required
+ at least one directory to be given.
+
.. signature::
file(REMOVE <files>...)
file(REMOVE_RECURSE <files>...)