cmMakefile: Extract invoke result variables
Make it more clear what is happening here.
This commit is contained in:
parent
8d80c8961f
commit
262ce91e8a
@ -254,9 +254,10 @@ bool cmMakefile::ExecuteCommand(const cmListFileFunction& lff,
|
|||||||
this->PrintCommandTrace(lff);
|
this->PrintCommandTrace(lff);
|
||||||
}
|
}
|
||||||
// Try invoking the command.
|
// Try invoking the command.
|
||||||
if (!pcmd->InvokeInitialPass(lff.Arguments, status) ||
|
bool invokeSucceeded = pcmd->InvokeInitialPass(lff.Arguments, status);
|
||||||
status.GetNestedError()) {
|
bool hadNestedError = status.GetNestedError();
|
||||||
if (!status.GetNestedError()) {
|
if (!invokeSucceeded || hadNestedError) {
|
||||||
|
if (!hadNestedError) {
|
||||||
// The command invocation requested that we report an error.
|
// The command invocation requested that we report an error.
|
||||||
this->IssueMessage(cmake::FATAL_ERROR, pcmd->GetError());
|
this->IssueMessage(cmake::FATAL_ERROR, pcmd->GetError());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user