MantisBT - CMake
View Issue Details
0016001CMakeCMakepublic2016-03-02 08:582016-06-10 14:31
Bartosz 
Kitware Robot 
normalmajoralways
closedmoved 
AllAllAll
CMake 3.4.3 
 
0016001: "cmake -E copy_directory" do not display error when directory to copy is not exists
"cmake -E copy_directory" do not display error when directory to copy is not exists
Run Command and make sure that "dupa" directory is not exists:
  cmake -E copy_directory dupa target

Currently:
  The copy_directory command will silently ignore, that "dupa" directory is not exists. Directory "target" will be created if not exists.

Expected:

Currently:
  The copy_directory command should display error, that "dupa" directory is not exists. Directory "target" will be created if not exists.
Confirmed on Cmake 3.5.0rc3
No tags attached.
Issue History
2016-03-02 08:58BartoszNew Issue
2016-03-02 08:59BartoszNote Added: 0040587
2016-03-07 11:30Brad KingNote Added: 0040638
2016-03-09 09:51BartoszNote Added: 0040654
2016-03-09 09:53Brad KingNote Added: 0040655
2016-06-10 14:29Kitware RobotNote Added: 0042953
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
(0040587)
Bartosz   
2016-03-02 08:59   
I would like to fix that.
Please confirm if it is expected behaviour.
(0040638)
Brad King   
2016-03-07 11:30   
Yes, we should diagnose this and update the test suite to cover it.
(0040654)
Bartosz   
2016-03-09 09:51   
Do we need to introduce new Policy (CMP) if we start implementing that?
(0040655)
Brad King   
2016-03-09 09:53   
Unfortunately policies do not help with command-line tool behavior because there is no scope in which to set the policy. Let's just change the behavior. If it breaks something important we can convert it to a warning instead. Please include a Help/release/dev/*.rst file with a release note calling attention to the behavior change.
(0042953)
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.