Error reporting under Windows fails in command mode
In a Windows command line, try: cmake -E rename this_file_does_not_exist something_else Your error response will be: Error renaming from "this_file_does_not_exist" to "something_else": No error
Obviously the correct error would be that the source file does not exist.
This behaviour seems to stem from the use of errno under Windows in the function cmSystemTools::GetLastSystemError. While errno exists, it is apparently not reliable in returning the actual error. GetLastError() should probably be checked instead/as well.