summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
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/cmSystemTools.h
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/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 99f20e0..0aecf71 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -489,15 +489,15 @@ public:
/** Create a symbolic link if the platform supports it. Returns whether
creation succeeded. */
- static bool CreateSymlink(const std::string& origName,
- const std::string& newName,
- std::string* errorMessage = nullptr);
+ static cmsys::Status CreateSymlink(std::string const& origName,
+ std::string const& newName,
+ std::string* errorMessage = nullptr);
/** Create a hard link if the platform supports it. Returns whether
creation succeeded. */
- static bool CreateLink(const std::string& origName,
- const std::string& newName,
- std::string* errorMessage = nullptr);
+ static cmsys::Status CreateLink(std::string const& origName,
+ std::string const& newName,
+ std::string* errorMessage = nullptr);
/** Get the system name. */
static cm::string_view GetSystemName();