copy command behavior is unclear when fed with a directory
Hi
The documentation state :
Copy files to (either file or directory).
But when I run it with a list of file followed by one directory and then the destination directory the first directory is not copied nor created. I tried to debug cmake.exe to see what is happening. It seems to try to create destination directory : https://github.com/Kitware/CMake/blob/c2686875fbbb2233dc20e13fccd45cc82ce84c85/Source/kwsys/SystemTools.cxx#L2425
In my opinion the documentation should state that directory are not copied or the command should copy the directory.