summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-01-11 21:19:09 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-01-12 13:39:41 (GMT)
commitc1170b5602d609f6ccd2506e5db9916c74388187 (patch)
treeb4ce41ec8edaecdd0347cdfd63251ebee28efb8e /Help
parent51a0292d9cb24e13f6b600bc97d950ad4344cfa5 (diff)
downloadCMake-c1170b5602d609f6ccd2506e5db9916c74388187.zip
CMake-c1170b5602d609f6ccd2506e5db9916c74388187.tar.gz
CMake-c1170b5602d609f6ccd2506e5db9916c74388187.tar.bz2
cmake: Add -E copy_directory_if_different
Fixes #21584
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake.1.rst10
-rw-r--r--Help/release/dev/cmake-E-copy-directory-if-different.rst4
2 files changed, 14 insertions, 0 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst
index dc51383..9f77562 100644
--- a/Help/manual/cmake.1.rst
+++ b/Help/manual/cmake.1.rst
@@ -876,6 +876,16 @@ Available commands are:
The command now fails when the source directory does not exist.
Previously it succeeded by creating an empty destination directory.
+.. option:: copy_directory_if_different <dir>... <destination>
+
+ .. versionadded:: 3.26
+
+ Copy changed content of ``<dir>...`` directories to ``<destination>`` directory.
+ If ``<destination>`` directory does not exist it will be created.
+
+ ``copy_directory_if_different`` does follow symlinks.
+ The command fails when the source directory does not exist.
+
.. option:: copy_if_different <file>... <destination>
Copy files to ``<destination>`` (either file or directory) if
diff --git a/Help/release/dev/cmake-E-copy-directory-if-different.rst b/Help/release/dev/cmake-E-copy-directory-if-different.rst
new file mode 100644
index 0000000..6e642c0
--- /dev/null
+++ b/Help/release/dev/cmake-E-copy-directory-if-different.rst
@@ -0,0 +1,4 @@
+cmake-E-copy-directory-if-different
+-----------------------------------
+
+* The :manual:`cmake(1)` ``-E`` option learned a new ``copy_directory_if_different`` command.