BUG#313: Improving error message when no CMakeLists.txt file is found in the source tree.

This commit is contained in:
Brad King 2003-10-30 16:12:09 -05:00
parent fc689df5d9
commit 7ce0e4c576
1 changed files with 5 additions and 4 deletions

View File

@ -845,10 +845,11 @@ int cmake::DoPreConfigureChecks()
srcList += "/CMakeLists.txt";
if(!cmSystemTools::FileExists(srcList.c_str()))
{
cmSystemTools::Error(
"The source directory does not appear to contain CMakeLists.txt.\n"
"Specify --help for usage, or press the help button on the CMake GUI.");
abort();
cmOStringStream err;
err << "The source directory \"" << this->GetHomeDirectory()
<< "\" does not appear to contain CMakeLists.txt.\n"
<< "Specify --help for usage, or press the help button on the CMake GUI.";
cmSystemTools::Error(err.str().c_str());
return -2;
}