summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-05 20:51:00 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-05 20:51:00 (GMT)
commit75b3751a4f768fb7d08fc7fc61de799da137c8b5 (patch)
tree879f9e398870f357937657b14cbaa5fc8c60cbb7
parent1e077d436e4fe2642e85bdb166b2983610d8d308 (diff)
downloadCMake-75b3751a4f768fb7d08fc7fc61de799da137c8b5.zip
CMake-75b3751a4f768fb7d08fc7fc61de799da137c8b5.tar.gz
CMake-75b3751a4f768fb7d08fc7fc61de799da137c8b5.tar.bz2
ENH: Clarified source directory mismatch message.
-rw-r--r--Source/cmake.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 8747cc8..f8915b0 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -853,11 +853,12 @@ int cmake::DoPreConfigureChecks()
currentStart += "/CMakeLists.txt";
if(!cmSystemTools::SameFile(cacheStart.c_str(), currentStart.c_str()))
{
- std::string message = "Error: source : ";
+ std::string message = "The source \"";
message += currentStart;
- message += "\nDoes not match source used to generate cache: ";
+ message += "\" does not match the source \"";
message += cacheStart;
- message += "\nRe-run cmake with a different source directory.";
+ message += "\" used to generate cache. ";
+ message += "Re-run cmake with a different source directory.";
cmSystemTools::Error(message.c_str());
return -2;
}