summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-01-28 21:10:28 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-06-13 18:20:44 (GMT)
commit262ce91e8ac3c6fc9b09605e652028db7229b9b8 (patch)
treedbab037bc94e4bbd53d471af64e29169ca678b5b /Source/cmMakefile.cxx
parent8d80c8961fce8f4b38f412de664f773c213a69b8 (diff)
downloadCMake-262ce91e8ac3c6fc9b09605e652028db7229b9b8.zip
CMake-262ce91e8ac3c6fc9b09605e652028db7229b9b8.tar.gz
CMake-262ce91e8ac3c6fc9b09605e652028db7229b9b8.tar.bz2
cmMakefile: Extract invoke result variables
Make it more clear what is happening here.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c9192fd..bfcd7db 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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());
}