summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-06 17:44:27 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-06 18:38:53 (GMT)
commitaba48bd6acbf564dcb5b831b26cc01743b5b5f71 (patch)
tree9b0d1e44f351ee52509095fb801509e630f5814f /Source/cmSystemTools.h
parent2133cf2c8e575bfff000041505208e28bcdfd4a3 (diff)
downloadCMake-aba48bd6acbf564dcb5b831b26cc01743b5b5f71.zip
CMake-aba48bd6acbf564dcb5b831b26cc01743b5b5f71.tar.gz
CMake-aba48bd6acbf564dcb5b831b26cc01743b5b5f71.tar.bz2
cmSystemTools: Provide quiet link creation methods
Offer variants that let the caller handle error messages.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index b02a977..87b354c 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -595,14 +595,16 @@ public:
/** Create a symbolic link if the platform supports it. Returns whether
creation succeeded. */
static cmsys::Status CreateSymlink(std::string const& origName,
- std::string const& newName,
- std::string* errorMessage = nullptr);
+ std::string const& newName);
+ static cmsys::Status CreateSymlinkQuietly(std::string const& origName,
+ std::string const& newName);
/** Create a hard link if the platform supports it. Returns whether
creation succeeded. */
static cmsys::Status CreateLink(std::string const& origName,
- std::string const& newName,
- std::string* errorMessage = nullptr);
+ std::string const& newName);
+ static cmsys::Status CreateLinkQuietly(std::string const& origName,
+ std::string const& newName);
/** Get the system name. */
static cm::string_view GetSystemName();