Commit 26e58b74 authored by Brad King's avatar Brad King
Browse files

BUG: Fix cmSystemTools::ChangeRPath to not complain if there is no RPATH entry...

BUG: Fix cmSystemTools::ChangeRPath to not complain if there is no RPATH entry in the file but the requested new rpath is empty.
parent 59001281
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment