BUG: fix for seg fault bug #3815

This commit is contained in:
Bill Hoffman 2006-10-03 10:57:31 -04:00
parent 48ee381e6b
commit 46c6442ce2
1 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,10 @@ bool cmMacroHelperCommand::InvokeInitialPass
}
if(!this->Makefile->ExecuteCommand(newLFF))
{
if(!args[0].FilePath)
{
args[0].FilePath = "Unknown";
}
cmOStringStream error;
error << "Error in cmake code at\n"
<< args[0].FilePath << ":" << args[0].Line << ":\n"