mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 22:05:57 +00:00
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);
|
||||
}
|
||||
// Try invoking the command.
|
||||
if (!pcmd->InvokeInitialPass(lff.Arguments, status) ||
|
||||
status.GetNestedError()) {
|
||||
if (!status.GetNestedError()) {
|
||||
bool invokeSucceeded = pcmd->InvokeInitialPass(lff.Arguments, status);
|
||||
bool hadNestedError = status.GetNestedError();
|
||||
if (!invokeSucceeded || hadNestedError) {
|
||||
if (!hadNestedError) {
|
||||
// The command invocation requested that we report an error.
|
||||
this->IssueMessage(cmake::FATAL_ERROR, pcmd->GetError());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user