summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-15 16:31:41 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-15 16:40:37 (GMT)
commit7f89053953f81aaa3d0283ba4b8d8b29ce234292 (patch)
tree691a850495097bd20a59014b715015a4513542d6 /Source/cmFileCommand.cxx
parent27b5dc35a67f28f46a2b91cf813cd6b34c5a21b8 (diff)
downloadCMake-7f89053953f81aaa3d0283ba4b8d8b29ce234292.zip
CMake-7f89053953f81aaa3d0283ba4b8d8b29ce234292.tar.gz
CMake-7f89053953f81aaa3d0283ba4b8d8b29ce234292.tar.bz2
cmSystemTools: Return KWSys Status from CreateLink and CreateSymlink
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 26bdedf..05ebcca 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -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.