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:
Bartosz Kosiorek
2015-12-03 21:29:30 +01:00
committed by Brad King
parent 0be5020bf8
commit 384ae5514e
23 changed files with 90 additions and 19 deletions
+4 -4
View File
@@ -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.