| 3736 | } |
| 3737 | |
| 3738 | bool 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 | |
| 3760 | namespace { |
| 3761 | bool VersionCompare(cmSystemTools::CompareOp op, char const* lhss, |
nothing calls this directly
no test coverage detected