Xcode: case-insensitive target ordering

This commit is contained in:
Gusts Kaksis
2024-10-10 21:22:19 +03:00
parent 80d0770250
commit e3be24da68

View File

@@ -1371,6 +1371,11 @@ struct cmCompareTargets
if (b == "ALL_BUILD"_s) {
return false;
}
std::string a_low = cmSystemTools::LowerCase(l->GetTarget()->GetName());
std::string b_low = cmSystemTools::LowerCase(r->GetTarget()->GetName());
if (a_low != b_low) {
return a_low < b_low;
}
return a < b;
}
};