From 3beb2c440badc293c7cf783abe0f1f5e9fb6f497 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 5 Sep 2019 08:30:09 -0400 Subject: cmake: Document -E remove_directory symlink behavior Update documentation for the change made by commit e6c9a8bac3 (cmake: Teach -E remove_directory to remove directory symlinks, 2019-08-26). Also add a release note. Issue: #19533 --- Help/manual/cmake.1.rst | 3 ++- Help/release/dev/remove_directory-symlink.rst | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Help/release/dev/remove_directory-symlink.rst diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 0645e41..2576cde 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -536,7 +536,8 @@ Available commands are: ``remove_directory ...`` Remove ```` directories and their contents. If a directory does - not exist it will be silently ignored. + not exist it will be silently ignored. If ```` is a symlink to + a directory, just the symlink will be removed. ``rename `` Rename a file or directory (on one volume). If file with the ```` name diff --git a/Help/release/dev/remove_directory-symlink.rst b/Help/release/dev/remove_directory-symlink.rst new file mode 100644 index 0000000..0896388 --- /dev/null +++ b/Help/release/dev/remove_directory-symlink.rst @@ -0,0 +1,6 @@ +remove_directory-symlink +------------------------ + +* The :manual:`cmake(1)` ``-E remove_directory`` command-line tool, + when given the path to a symlink to a directory, now removes just + the symlink. It no longer removes content of the linked directory. -- cgit v0.12