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

Method AddUtilityCommand

Source/cmLocalGenerator.cxx:1150–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1148}
1149
1150cmTarget* cmLocalGenerator::AddUtilityCommand(
1151 std::string const& utilityName, bool excludeFromAll,
1152 std::unique_ptr<cmCustomCommand> cc)
1153{
1154 cmTarget* target =
1155 this->Makefile->AddNewUtilityTarget(utilityName, excludeFromAll);
1156 target->SetIsGeneratorProvided(true);
1157
1158 if (cc->GetCommandLines().empty() && cc->GetDepends().empty()) {
1159 return target;
1160 }
1161
1162 cc->SetBacktrace(this->DirectoryBacktrace);
1163 detail::AddUtilityCommand(*this, cmCommandOrigin::Generator, target,
1164 std::move(cc));
1165
1166 return target;
1167}
1168
1169std::vector<BT<std::string>> cmLocalGenerator::GetIncludeDirectoriesImplicit(
1170 cmGeneratorTarget const* target, std::string const& lang,

Callers

nothing calls this directly

Calls 7

AddUtilityCommandFunction · 0.85
moveFunction · 0.85
AddNewUtilityTargetMethod · 0.80
GetDependsMethod · 0.80
emptyMethod · 0.45
SetBacktraceMethod · 0.45

Tested by

no test coverage detected