mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cmSystemTools: Remove redundant cmCopyFile() and Split()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user