mirror of
https://github.com/reactos/CMake.git
synced 2025-02-12 14:58:45 +00:00
BUG: Fix cmSystemTools::ChangeRPath to not complain if there is no RPATH entry in the file but the requested new rpath is empty.
This commit is contained in:
parent
59001281bb
commit
26e58b74d1
@ -2211,6 +2211,12 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
|
||||
rpathPosition = se->Position;
|
||||
rpathSize = se->Size;
|
||||
}
|
||||
else if(newRPath.empty())
|
||||
{
|
||||
// The new rpath is empty and there is no rpath anyway so it is
|
||||
// okay.
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(emsg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user