diff options
author | Craig Scott <craig.scott@crascit.com> | 2024-05-31 11:20:30 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2024-05-31 12:55:20 (GMT) |
commit | 7c516f7e28813a1ed66a4fd0a94d8a56b611eeef (patch) | |
tree | 04ae221bdaf7a1bd6d57da1aa7e96554efa11f3c /Help | |
parent | 140766867b2c8f8dff0e4d0d73e481b6944b5284 (diff) | |
download | CMake-7c516f7e28813a1ed66a4fd0a94d8a56b611eeef.zip CMake-7c516f7e28813a1ed66a4fd0a94d8a56b611eeef.tar.gz CMake-7c516f7e28813a1ed66a4fd0a94d8a56b611eeef.tar.bz2 |
file(): TOUCH, TOUCH_NOCREATE and MAKE_DIRECTORY accept empty lists
Projects may be generating a list of files or directories to pass as arguments
to file(TOUCH), file(TOUCH_NOCREATE), or file(MAKE_DIRECTORY). Those
lists might end up being empty, so rather than requiring at least one item,
allow an empty list.
Fixes: #24897
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/file.rst | 8 |
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>...) |