summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-04-07 14:55:52 (GMT)
committerBrad King <brad.king@kitware.com>2008-04-07 14:55:52 (GMT)
commitc408760a8a8d2e8c65f231c399b4ed2e6d2087da (patch)
tree307faea6ba68410f7ac5f000523e225d73dce35d /Source/cmSystemTools.cxx
parent5824f44a7567d1d645a2a1c064652013a6b977e2 (diff)
downloadCMake-c408760a8a8d2e8c65f231c399b4ed2e6d2087da.zip
CMake-c408760a8a8d2e8c65f231c399b4ed2e6d2087da.tar.gz
CMake-c408760a8a8d2e8c65f231c399b4ed2e6d2087da.tar.bz2
ENH: Improve error message when installation file(CHRPATH) cannot change the RPATH.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 32c7797..26b2b58 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2229,7 +2229,13 @@ bool cmSystemTools::ChangeRPath(std::string const& file,
}
if(emsg)
{
- *emsg = "The current RPATH does not begin with that specified.";
+ cmOStringStream e;
+ e << "The current RPATH is:\n"
+ << " " << se->Value << "\n"
+ << "which does not begin with:\n"
+ << " " << oldRPath << "\n"
+ << "as was expected.";
+ *emsg = e.str();
}
return false;
}