summaryrefslogtreecommitdiffstats
path: root/Source/cmDisallowedCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDisallowedCommand.cxx')
-rw-r--r--Source/cmDisallowedCommand.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmDisallowedCommand.cxx b/Source/cmDisallowedCommand.cxx
index 418d98c..aa1f90b 100644
--- a/Source/cmDisallowedCommand.cxx
+++ b/Source/cmDisallowedCommand.cxx
@@ -24,8 +24,6 @@ bool cmDisallowedCommand::InitialPass(std::vector<std::string> const& args,
return true;
}
- this->Command->SetMakefile(this->GetMakefile());
- bool const ret = this->Command->InitialPass(args, status);
- this->SetError(this->Command->GetError());
- return ret;
+ this->Command->SetExecutionStatus(this->GetExecutionStatus());
+ return this->Command->InitialPass(args, status);
}