View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015870CMakeCMakepublic2015-12-02 17:202016-06-10 14:31
ReporterBartosz 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformAllOSLinuxOS Version
Product Version 
Target VersionFixed in Version 
Summary0015870: "cmake -E copy" command do not display error if source is directory
DescriptionIn 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
Steps To Reproducemkdir directory1
mkdir directory2
cmake -E copy directory1 directory2
TagsNo tags attached.
Attached Files

 Relationships
related to 0015703closed "cmake -E copy" support for multiple files 

  Notes
(0039942)
Bartosz (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2015-12-02 17:20 Bartosz New Issue
2015-12-03 03:23 Bartosz Note Added: 0039942
2015-12-03 03:29 Bartosz Note Added: 0039943
2015-12-03 08:41 Brad King Relationship added related to 0015703
2016-06-10 14:29 Kitware Robot Note Added: 0042895
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team