MCPcopy Create free account
hub / github.com/Kitware/CMake / SetRPath

Method SetRPath

Source/cmSystemTools.cxx:3738–3758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3736}
3737
3738bool cmSystemTools::SetRPath(std::string const& file,
3739 std::string const& newRPath, std::string* emsg,
3740 bool* changed)
3741{
3742 if (cm::optional<bool> result = SetRPathELF(file, newRPath, emsg, changed)) {
3743 return result.value();
3744 }
3745 if (cm::optional<bool> result =
3746 SetRPathXCOFF(file, newRPath, emsg, changed)) {
3747 return result.value();
3748 }
3749 // The file format is not recognized. Assume it has no RPATH.
3750 if (newRPath.empty()) {
3751 // The caller wanted no RPATH anyway.
3752 return true;
3753 }
3754 if (emsg) {
3755 *emsg = "The file format is not recognized.";
3756 }
3757 return false;
3758}
3759
3760namespace {
3761bool VersionCompare(cmSystemTools::CompareOp op, char const* lhss,

Callers

nothing calls this directly

Calls 4

SetRPathELFFunction · 0.85
SetRPathXCOFFFunction · 0.85
valueMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected