From 73f175146a3f204820a1ae0a81b98355fa48ebcd Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 2 Mar 2008 16:48:50 -0500 Subject: ENH: During installation do not use builtin chrpath if the rpath will not change. --- Source/cmInstallTargetGenerator.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 9ecf346..f05c375 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -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" -- cgit v0.12