cmSystemTools: Remove redundant cmCopyFile() and Split()

This commit is contained in:
Vitaly Stakhovsky
2019-02-14 07:45:13 -05:00
parent 442cb77bf3
commit bd20cc29a2
5 changed files with 3 additions and 24 deletions

View File

@@ -3756,7 +3756,7 @@ bool cmFileCommand::HandleCreateLinkCommand(
// Check if copy-on-error is enabled in the arguments.
if (!completed && copyOnErrorArg.IsEnabled()) {
completed = cmSystemTools::cmCopyFile(fileName, newFileName);
completed = cmsys::SystemTools::CopyFileAlways(fileName, newFileName);
if (!completed) {
result = "Copy failed: " + cmSystemTools::GetLastSystemError();
}