summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-02 21:48:50 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-02 21:48:50 (GMT)
commit73f175146a3f204820a1ae0a81b98355fa48ebcd (patch)
tree14181f51fa13b4865c53a113487bdf5d715df95d /Source/cmInstallTargetGenerator.cxx
parent652951b976cedc29986c2a856f0ca4538c50a21a (diff)
downloadCMake-73f175146a3f204820a1ae0a81b98355fa48ebcd.zip
CMake-73f175146a3f204820a1ae0a81b98355fa48ebcd.tar.gz
CMake-73f175146a3f204820a1ae0a81b98355fa48ebcd.tar.bz2
ENH: During installation do not use builtin chrpath if the rpath will not change.
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
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"