mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 12:19:54 -05:00
cmake: Teach -E copy[_if_different] to support multiple files (#15703)
If multiple input files are provided then the destination must be a directory. If only one input file is provided then destination may be either a file or directory.
This commit is contained in:
committed by
Brad King
parent
0be5020bf8
commit
384ae5514e
@@ -169,14 +169,14 @@ Available commands are:
|
||||
``compare_files <file1> <file2>``
|
||||
Check if file1 is same as file2.
|
||||
|
||||
``copy <file> <destination>``
|
||||
Copy file to destination (either file or directory).
|
||||
``copy <file>... <destination>``
|
||||
Copy files to 'destination' (either file or directory).
|
||||
|
||||
``copy_directory <source> <destination>``
|
||||
Copy directory 'source' content to directory 'destination'.
|
||||
|
||||
``copy_if_different <in-file> <out-file>``
|
||||
Copy file if input has changed.
|
||||
``copy_if_different <file>... <destination>``
|
||||
Copy files if input has changed. Destination could be file or directory.
|
||||
|
||||
``echo [<string>...]``
|
||||
Displays arguments as text.
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
cmake-E-copy-multiple-inputs
|
||||
----------------------------
|
||||
|
||||
* The :manual:`cmake(1)` ``-E copy`` and ``-E copy_if_different`` command-line
|
||||
tools learned to support copying multiple input files to a directory.
|
||||
Reference in New Issue
Block a user