mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -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
@@ -55,7 +55,7 @@ static void cmVariableWatchCommandVariableAccessed(const std::string& variable,
|
||||
newLFF.Arguments.emplace_back(stack, cmListFileArgument::Quoted, 9999);
|
||||
newLFF.Name = data->Command;
|
||||
newLFF.Line = 9999;
|
||||
cmExecutionStatus status;
|
||||
cmExecutionStatus status(*makefile);
|
||||
if (!makefile->ExecuteCommand(newLFF, status)) {
|
||||
std::ostringstream error;
|
||||
error << "Error in cmake code at\nUnknown:0:\n"
|
||||
|
||||
Reference in New Issue
Block a user