Commit eb6b3009 authored by Brad King's avatar Brad King
Browse files

ENH: Add directory-level context information to error/warning messages when no...

ENH: Add directory-level context information to error/warning messages when no call stack is present.
parent ee725064
......@@ -325,6 +325,21 @@ void cmMakefile::IssueMessage(std::string const& text, bool isError) const
<< ":" << lfc.Line << " " << lfc.Name;
++i;
}
else if(!this->ListFileStack.empty())
{
// We are processing the project but are not currently executing a
// command. Add whatever context information we have.
if(this->LocalGenerator->GetParent())
{
msg << " in directory "
<< this->LocalGenerator->Convert(this->GetCurrentDirectory(),
cmLocalGenerator::HOME);
}
else
{
msg << " in top-level directory";
}
}
// Add the message text.
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment