mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: In cmSystemTools::ChangeRPath check for the RUNPATH if RPATH does not exist.
This commit is contained in:
@@ -2208,7 +2208,12 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
|
||||
std::string rpathSuffix;
|
||||
{
|
||||
cmELF elf(file.c_str());
|
||||
if(cmELF::StringEntry const* se = elf.GetRPath())
|
||||
cmELF::StringEntry const* se = elf.GetRPath();
|
||||
if(!se)
|
||||
{
|
||||
se = elf.GetRunPath();
|
||||
}
|
||||
if(se)
|
||||
{
|
||||
// Make sure the current rpath begins with the old rpath.
|
||||
if(se->Value.length() < oldRPath.length() ||
|
||||
|
||||
Reference in New Issue
Block a user