BUG: fix for #9014, FATAL_ERROR not ending loops
This commit is contained in:
parent
cecfce23a5
commit
0a7ec1a4b6
|
@ -72,6 +72,10 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
|
||||||
mf.AddDefinition(this->Args[0].c_str(),oldDef.c_str());
|
mf.AddDefinition(this->Args[0].c_str(),oldDef.c_str());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if(cmSystemTools::GetFatalErrorOccured() )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// restore the variable to its prior value
|
// restore the variable to its prior value
|
||||||
|
|
|
@ -60,6 +60,10 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if(cmSystemTools::GetFatalErrorOccured() )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
expandedArguments.clear();
|
expandedArguments.clear();
|
||||||
mf.ExpandArguments(this->Args, expandedArguments);
|
mf.ExpandArguments(this->Args, expandedArguments);
|
||||||
|
|
Loading…
Reference in New Issue