mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
cmCommand: deprecate functions GetMakefile and SetError
Replace the members for the Makefile and the Error with a cmExecutionStatus. Re-implement GetMakefile and SetError based on that. Both functions should be called directly on the cmExecutionStatus that is passed to InitialPass. This will help us make all Commands immutable and remove the need for cloning.
This commit is contained in:
committed by
Regina Pfeifer
parent
82aa6941e9
commit
1eebc29563
@@ -132,7 +132,7 @@ bool cmMacroHelperCommand::InvokeInitialPass(
|
||||
arg.Line = k.Line;
|
||||
newLFF.Arguments.push_back(std::move(arg));
|
||||
}
|
||||
cmExecutionStatus status;
|
||||
cmExecutionStatus status(*this->GetMakefile());
|
||||
if (!this->Makefile->ExecuteCommand(newLFF, status) ||
|
||||
status.GetNestedError()) {
|
||||
// The error message should have already included the call stack
|
||||
|
||||
Reference in New Issue
Block a user