mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmSystemTools: Provide quiet link creation methods
Offer variants that let the caller handle error messages.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user