| 1213 | } |
| 1214 | |
| 1215 | void cmMakefile::AppendCustomCommandToOutput( |
| 1216 | std::string const& output, std::vector<std::string> const& depends, |
| 1217 | cmImplicitDependsList const& implicit_depends, |
| 1218 | cmCustomCommandLines const& commandLines) |
| 1219 | { |
| 1220 | // Validate custom commands. |
| 1221 | if (this->ValidateCustomCommand(commandLines)) { |
| 1222 | // Dispatch command creation to allow generator expressions in outputs. |
| 1223 | this->AddGeneratorAction( |
| 1224 | [this, output, depends, implicit_depends, |
| 1225 | commandLines](cmLocalGenerator& lg, cmListFileBacktrace const& lfbt) { |
| 1226 | BacktraceGuard guard(this->Backtrace, lfbt); |
| 1227 | detail::AppendCustomCommandToOutput(lg, lfbt, output, depends, |
| 1228 | implicit_depends, commandLines); |
| 1229 | }); |
| 1230 | } |
| 1231 | } |
| 1232 | |
| 1233 | cmTarget* cmMakefile::AddUtilityCommand(std::string const& utilityName, |
| 1234 | bool excludeFromAll, |
no test coverage detected