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