| 165 | } |
| 166 | |
| 167 | bool cmMacroFunctionBlocker::Replay(std::vector<cmListFileFunction> functions, |
| 168 | cmExecutionStatus& status) |
| 169 | { |
| 170 | cmMakefile& mf = status.GetMakefile(); |
| 171 | mf.AppendProperty("MACROS", this->Args[0]); |
| 172 | // create a new command and add it to cmake |
| 173 | cmMacroHelperCommand f; |
| 174 | f.Args = this->Args; |
| 175 | f.Functions = std::move(functions); |
| 176 | f.FilePath = this->GetStartingContext().FilePath; |
| 177 | mf.RecordPolicies(f.Policies); |
| 178 | return mf.GetState()->AddScriptedCommand( |
| 179 | this->Args[0], |
| 180 | BT<cmState::Command>(std::move(f), |
| 181 | mf.GetBacktrace().Push(this->GetStartingContext())), |
| 182 | mf); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | bool cmMacroCommand(std::vector<std::string> const& args, |
nothing calls this directly
no test coverage detected