summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-05-22 12:57:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-22 12:57:29 (GMT)
commitad32282a3e6e7ca648f2e4a40410f08f95023df1 (patch)
treed7b8e6ff32d234233dddd8d3e009aa9086669135 /Help
parentf01e18eb4699df530e310d376e66752fa6c1dedf (diff)
parenta1eb03569d0e82fb6eaf9a11da1960cfa456f5ef (diff)
downloadCMake-ad32282a3e6e7ca648f2e4a40410f08f95023df1.zip
CMake-ad32282a3e6e7ca648f2e4a40410f08f95023df1.tar.gz
CMake-ad32282a3e6e7ca648f2e4a40410f08f95023df1.tar.bz2
Merge topic 'file-remove-no-empty'
a1eb03569d file: Change REMOVE to ignore empty names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3349
Diffstat (limited to 'Help')
-rw-r--r--Help/command/file.rst3
-rw-r--r--Help/release/dev/file-remove-no-empty.rst6
2 files changed, 8 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index 0664e7c..f99021e 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -292,7 +292,8 @@ Move a file or directory within a filesystem from ``<oldname>`` to
Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given
files and directories, also non-empty directories. No error is emitted if a
-given file does not exist.
+given file does not exist. Relative input paths are evaluated with respect
+to the current source directory. Empty input paths are ignored with a warning.
.. _MAKE_DIRECTORY:
diff --git a/Help/release/dev/file-remove-no-empty.rst b/Help/release/dev/file-remove-no-empty.rst
new file mode 100644
index 0000000..0a68d67
--- /dev/null
+++ b/Help/release/dev/file-remove-no-empty.rst
@@ -0,0 +1,6 @@
+file-remove-no-empty
+--------------------
+
+* The :command:`file(REMOVE)` and :command:`file(REMOVE_RECURSE)` commands
+ were changed to ignore empty arguments with a warning instead of treating
+ them as a relative path and removing the contents of the current directory.