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

Method AddCustomCommandToTarget

Source/cmLocalGenerator.cxx:1118–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118cmTarget* cmLocalGenerator::AddCustomCommandToTarget(
1119 std::string const& target, cmCustomCommandType type,
1120 std::unique_ptr<cmCustomCommand> cc, cmObjectLibraryCommands objLibCommands)
1121{
1122 cmTarget* t = this->Makefile->GetCustomCommandTarget(
1123 target, objLibCommands, this->DirectoryBacktrace);
1124 if (!t) {
1125 return nullptr;
1126 }
1127
1128 cc->SetBacktrace(this->DirectoryBacktrace);
1129
1130 detail::AddCustomCommandToTarget(*this, cmCommandOrigin::Generator, t, type,
1131 std::move(cc));
1132
1133 return t;
1134}
1135
1136cmSourceFile* cmLocalGenerator::AddCustomCommandToOutput(
1137 std::unique_ptr<cmCustomCommand> cc, bool replace)

Callers 1

CopyPchCompilePdbMethod · 0.95

Calls 4

AddCustomCommandToTargetFunction · 0.85
moveFunction · 0.85
SetBacktraceMethod · 0.45

Tested by

no test coverage detected