mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 12:15:20 +00:00
ENH: During installation do not use builtin chrpath if the rpath will not change.
This commit is contained in:
parent
652951b976
commit
73f175146a
@ -572,6 +572,12 @@ cmInstallTargetGenerator
|
||||
// Get the install RPATH from the link information.
|
||||
std::string newRpath = cli->GetChrpathString();
|
||||
|
||||
// Skip the rule if the paths are identical
|
||||
if(oldRpath == newRpath)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Write a rule to run chrpath to set the install-tree RPATH
|
||||
os << indent << "FILE(CHRPATH FILE \"" << toDestDirPath << "\"\n"
|
||||
<< indent << " OLD_RPATH \"" << oldRpath << "\"\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user