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

Method AddCustomCommandToOutput

Source/cmLocalGenerator.cxx:1136–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134}
1135
1136cmSourceFile* cmLocalGenerator::AddCustomCommandToOutput(
1137 std::unique_ptr<cmCustomCommand> cc, bool replace)
1138{
1139 // Make sure there is at least one output.
1140 if (cc->GetOutputs().empty()) {
1141 cmSystemTools::Error("Attempt to add a custom rule with no output!");
1142 return nullptr;
1143 }
1144
1145 cc->SetBacktrace(this->DirectoryBacktrace);
1146 return detail::AddCustomCommandToOutput(*this, cmCommandOrigin::Generator,
1147 std::move(cc), replace);
1148}
1149
1150cmTarget* cmLocalGenerator::AddUtilityCommand(
1151 std::string const& utilityName, bool excludeFromAll,

Callers 1

CopyPchCompilePdbMethod · 0.95

Calls 5

AddCustomCommandToOutputFunction · 0.85
moveFunction · 0.85
ErrorClass · 0.70
emptyMethod · 0.45
SetBacktraceMethod · 0.45

Tested by

no test coverage detected