Reformatted the error printed by cmMakefile.
This commit is contained in:
parent
a7664e8e01
commit
d0d25bb989
|
@ -35,7 +35,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args)
|
||||||
args[0].c_str());
|
args[0].c_str());
|
||||||
if(!optional && !readit)
|
if(!optional && !readit)
|
||||||
{
|
{
|
||||||
std::string m = "Could not find include file:";
|
std::string m = "Could not find include file: ";
|
||||||
m += args[0];
|
m += args[0];
|
||||||
this->SetError(m.c_str());
|
this->SetError(m.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -224,10 +224,13 @@ void cmMakefile::ExecuteCommand(std::string &name,
|
||||||
}
|
}
|
||||||
if(!usedCommand->InitialPass(expandedArguments))
|
if(!usedCommand->InitialPass(expandedArguments))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(usedCommand->GetName(),
|
std::string error;
|
||||||
": Error : \n",
|
error = usedCommand->GetName();
|
||||||
usedCommand->GetError(),
|
error += ": Error : \n";
|
||||||
m_cmCurrentDirectory.c_str());
|
error += usedCommand->GetError();
|
||||||
|
error += " from CMakeLists.txt file in directory: ";
|
||||||
|
error += m_cmCurrentDirectory;
|
||||||
|
cmSystemTools::Error(error.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue