diff options
author | Brad King <brad.king@kitware.com> | 2021-04-15 16:31:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-15 16:40:37 (GMT) |
commit | 7f89053953f81aaa3d0283ba4b8d8b29ce234292 (patch) | |
tree | 691a850495097bd20a59014b715015a4513542d6 /Source/cmSystemTools.h | |
parent | 27b5dc35a67f28f46a2b91cf813cd6b34c5a21b8 (diff) | |
download | CMake-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.h | 12 |
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(); |