summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2021-05-04 20:31:05 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2021-06-04 12:52:01 (GMT)
commitf73027b182710dd00524b2a4007838f9080c3ea1 (patch)
treec04269f51de0462f7da371ed0a2d4241ec3e4a47 /Source/cmSystemTools.h
parent966f7250df01df7982aa6ff4117464d797b6bf10 (diff)
downloadCMake-f73027b182710dd00524b2a4007838f9080c3ea1.zip
CMake-f73027b182710dd00524b2a4007838f9080c3ea1.tar.gz
CMake-f73027b182710dd00524b2a4007838f9080c3ea1.tar.bz2
cmSystemTools: Add SetRPath() method
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 5c3b5a9..44ccbf7 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -456,13 +456,17 @@ public:
static bool GuessLibraryInstallName(std::string const& fullPath,
std::string& soname);
- /** Try to set the RPATH in an ELF binary. */
+ /** Try to change the RPATH in an ELF binary. */
static bool ChangeRPath(std::string const& file, std::string const& oldRPath,
std::string const& newRPath,
bool removeEnvironmentRPath,
std::string* emsg = nullptr,
bool* changed = nullptr);
+ /** Try to set the RPATH in an ELF binary. */
+ static bool SetRPath(std::string const& file, std::string const& newRPath,
+ std::string* emsg = nullptr, bool* changed = nullptr);
+
/** Try to remove the RPATH from an ELF binary. */
static bool RemoveRPath(std::string const& file, std::string* emsg = nullptr,
bool* removed = nullptr);