BUG#313: Improving error message when no CMakeLists.txt file is found in the source tree.
This commit is contained in:
parent
fc689df5d9
commit
7ce0e4c576
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue