diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-11-14 20:49:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-15 12:47:07 (GMT) |
commit | 8d9069e5b667e1b6d7f1eaea52ae88eb31d7d0df (patch) | |
tree | 2feeb011b4f19309ba6d9b53255862575e35daef /Help | |
parent | f8107e7c6bc007d6b00a2ba11dfd685a4606824a (diff) | |
download | CMake-8d9069e5b667e1b6d7f1eaea52ae88eb31d7d0df.zip CMake-8d9069e5b667e1b6d7f1eaea52ae88eb31d7d0df.tar.gz CMake-8d9069e5b667e1b6d7f1eaea52ae88eb31d7d0df.tar.bz2 |
cmake -E copy: Add support for -t argument
Fixes: #23543
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake.1.rst | 14 | ||||
-rw-r--r-- | Help/release/dev/cmake-E-copy-t-arg.rst | 4 |
2 files changed, 13 insertions, 5 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index daa2e58..dc51383 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -848,17 +848,21 @@ Available commands are: .. program:: cmake-E -.. option:: copy <file>... <destination> +.. option:: copy <file>... <destination>, copy -t <destination> <file>... Copy files to ``<destination>`` (either file or directory). - If multiple files are specified, the ``<destination>`` must be - directory and it must exist. Wildcards are not supported. - ``copy`` does follow symlinks. That means it does not copy symlinks, - but the files or directories it point to. + If multiple files are specified, or if ``-t`` is specified, the + ``<destination>`` must be directory and it must exist. If ``-t`` is not + specified, the last argument is assumed to be the ``<destination>``. + Wildcards are not supported. ``copy`` does follow symlinks. That means it + does not copy symlinks, but the files or directories it point to. .. versionadded:: 3.5 Support for multiple input files. + .. versionadded:: 3.26 + Support for ``-t`` argument. + .. option:: copy_directory <dir>... <destination> Copy content of ``<dir>...`` directories to ``<destination>`` directory. diff --git a/Help/release/dev/cmake-E-copy-t-arg.rst b/Help/release/dev/cmake-E-copy-t-arg.rst new file mode 100644 index 0000000..ca897d3 --- /dev/null +++ b/Help/release/dev/cmake-E-copy-t-arg.rst @@ -0,0 +1,4 @@ +cmake-E-copy-t-arg +------------------ + +* The :option:`cmake -E copy <cmake-E copy>` argument now supports a ``-t`` argument. |