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

Method AppendCodegenTargetDepends

Source/cmGlobalUnixMakefileGenerator3.cxx:912–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

910}
911
912void cmGlobalUnixMakefileGenerator3::AppendCodegenTargetDepends(
913 std::vector<std::string>& depends, cmGeneratorTarget* target)
914{
915 std::set<std::string> const& codegen_depends =
916 target->Target->GetCodegenDeps();
917
918 for (cmTargetDepend const& i : this->GetTargetDirectDepends(target)) {
919 // Create the target-level dependency.
920 cmGeneratorTarget const* dep = i;
921 if (!dep->IsInBuildSystem()) {
922 continue;
923 }
924 if (codegen_depends.find(dep->GetName()) != codegen_depends.end()) {
925 cmLocalUnixMakefileGenerator3* lg3 =
926 static_cast<cmLocalUnixMakefileGenerator3*>(dep->GetLocalGenerator());
927 std::string tgtName = cmStrCat(
928 lg3->GetRelativeTargetDirectory(const_cast<cmGeneratorTarget*>(dep)),
929 "/all");
930 depends.push_back(tgtName);
931 }
932 }
933}
934
935void cmGlobalUnixMakefileGenerator3::WriteHelpRule(
936 std::ostream& ruleFileStream, cmLocalUnixMakefileGenerator3* lg)

Callers 1

Calls 9

IsInBuildSystemMethod · 0.80
push_backMethod · 0.80
cmStrCatFunction · 0.70
findMethod · 0.45
GetNameMethod · 0.45
endMethod · 0.45
GetLocalGeneratorMethod · 0.45

Tested by

no test coverage detected