Browse Source

ENH: Clarified source directory mismatch message.

Brad King 22 years ago
parent
commit
75b3751a4f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Source/cmake.cxx

+ 4 - 3
Source/cmake.cxx

@@ -853,11 +853,12 @@ int cmake::DoPreConfigureChecks()
     currentStart += "/CMakeLists.txt";
     currentStart += "/CMakeLists.txt";
     if(!cmSystemTools::SameFile(cacheStart.c_str(), currentStart.c_str()))
     if(!cmSystemTools::SameFile(cacheStart.c_str(), currentStart.c_str()))
       {
       {
-      std::string message = "Error: source : ";
+      std::string message = "The source \"";
       message += currentStart;
       message += currentStart;
-      message += "\nDoes not match source used to generate cache: ";
+      message += "\" does not match the source \"";
       message += cacheStart;
       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());
       cmSystemTools::Error(message.c_str());
       return -2;
       return -2;
       }
       }