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

Class cmCompareTargets

Source/cmGlobalXCodeGenerator.cxx:1479–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477};
1478
1479struct cmCompareTargets
1480{
1481 bool operator()(cmXCodeObject* l, cmXCodeObject* r) const
1482 {
1483 std::string const& a = l->GetTarget()->GetName();
1484 std::string const& b = r->GetTarget()->GetName();
1485 if (a == b) {
1486 return false;
1487 }
1488 if (a == "ALL_BUILD"_s) {
1489 return true;
1490 }
1491 if (b == "ALL_BUILD"_s) {
1492 return false;
1493 }
1494 std::string a_low = cmSystemTools::LowerCase(l->GetTarget()->GetName());
1495 std::string b_low = cmSystemTools::LowerCase(r->GetTarget()->GetName());
1496 if (a_low != b_low) {
1497 return a_low < b_low;
1498 }
1499 return a < b;
1500 }
1501};
1502
1503bool cmGlobalXCodeGenerator::CreateXCodeTargets(
1504 cmLocalGenerator* gen, std::vector<cmXCodeObject*>& targets)

Callers 1

CreateXCodeTargetsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…