MCPcopy Create free account
hub / github.com/Kitware/CMake / AppendCustomCommandToOutput

Method AppendCustomCommandToOutput

Source/cmMakefile.cxx:1215–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213}
1214
1215void 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
1233cmTarget* cmMakefile::AddUtilityCommand(std::string const& utilityName,
1234 bool excludeFromAll,

Callers 1

Calls 3

ValidateCustomCommandMethod · 0.95
AddGeneratorActionMethod · 0.95

Tested by

no test coverage detected