MantisBT - CMake
View Issue Details
0015870CMakeCMakepublic2015-12-02 17:202016-06-10 14:31
Bartosz 
Kitware Robot 
normalminoralways
closedmoved 
AllLinux
 
 
0015870: "cmake -E copy" command do not display error if source is directory
In current cmake implementation, by command:
 "cmake -E copy directory1 directory2"

Do not copy anything and do not displays errors.

Expected:
cmake should display error message that directory "directory1" was not copied.
It could be guarded by new Cmake policy
mkdir directory1
mkdir directory2
cmake -E copy directory1 directory2
No tags attached.
related to 0015703closed  "cmake -E copy" support for multiple files 
Issue History
2015-12-02 17:20BartoszNew Issue
2015-12-03 03:23BartoszNote Added: 0039942
2015-12-03 03:29BartoszNote Added: 0039943
2015-12-03 08:41Brad KingRelationship addedrelated to 0015703
2016-06-10 14:29Kitware RobotNote Added: 0042895
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0039942)
Bartosz   
2015-12-03 03:23   
The same situation is with command:
  cmake_if_different -E copy directory1 directory2

Another case is "copy_directory", when source is file.
Following command neither copy file nor display error
  cmake_directory -E copy file directory2

Is it very painful to resolve such issues, especially with big/multiplatform projects, with multiple files to copy.
(0039943)
Bartosz   
2015-12-03 03:29   
In my opinion "copy_directory" should copy files.
Then after introducing "wildcard" support, it will be possible to copy everything from directory. For example:
 cmake -E copy_directory * destdirectory

or
 cmake -E copy_directory dir1/* destdirectory
(0042895)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.