mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmSystemTools: Return KWSys Status from CreateLink and CreateSymlink
This commit is contained in:
@@ -2949,9 +2949,11 @@ bool HandleCreateLinkCommand(std::vector<std::string> const& args,
|
||||
|
||||
// Check if the command requires a symbolic link.
|
||||
if (arguments.Symbolic) {
|
||||
completed = cmSystemTools::CreateSymlink(fileName, newFileName, &result);
|
||||
completed = static_cast<bool>(
|
||||
cmSystemTools::CreateSymlink(fileName, newFileName, &result));
|
||||
} else {
|
||||
completed = cmSystemTools::CreateLink(fileName, newFileName, &result);
|
||||
completed = static_cast<bool>(
|
||||
cmSystemTools::CreateLink(fileName, newFileName, &result));
|
||||
}
|
||||
|
||||
// Check if copy-on-error is enabled in the arguments.
|
||||
|
||||
Reference in New Issue
Block a user