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

Method GetLocalGeneratorTargetsInOrder

Source/cmGlobalGenerator.cxx:1806–1816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1804}
1805
1806std::vector<cmGeneratorTarget*>
1807cmGlobalGenerator::GetLocalGeneratorTargetsInOrder(cmLocalGenerator* lg) const
1808{
1809 std::vector<cmGeneratorTarget*> gts;
1810 cm::append(gts, lg->GetGeneratorTargets());
1811 std::sort(gts.begin(), gts.end(),
1812 [this](cmGeneratorTarget const* l, cmGeneratorTarget const* r) {
1813 return this->TargetOrderIndexLess(l, r);
1814 });
1815 return gts;
1816}
1817
1818void cmGlobalGenerator::ComputeTargetOrder()
1819{

Callers 4

CreateXCodeTargetsMethod · 0.80
GenerateMethod · 0.80
GenerateMethod · 0.80
GenerateMethod · 0.80

Calls 4

TargetOrderIndexLessMethod · 0.95
appendFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected