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

Function MakeEmptyCallback

Source/cmSystemTools.cxx:3533–3549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3531}
3532
3533std::function<bool(std::string*, cmELF const&)> MakeEmptyCallback(
3534 std::string const& newRPath)
3535{
3536 return [newRPath](std::string* emsg, cmELF const& elf) -> bool {
3537 if (newRPath.empty()) {
3538 // The new rpath is empty and there is no rpath anyway so it is
3539 // okay.
3540 return true;
3541 }
3542 if (emsg) {
3543 *emsg =
3544 cmStrCat("No valid ELF RPATH or RUNPATH entry exists in the file; ",
3545 elf.GetErrorMessage());
3546 }
3547 return false;
3548 };
3549}
3550}
3551
3552static cm::optional<bool> ChangeRPathELF(std::string const& file,

Callers 2

ChangeRPathELFFunction · 0.85
SetRPathELFFunction · 0.85

Calls 3

cmStrCatFunction · 0.70
emptyMethod · 0.45
GetErrorMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…