Xcode: Fix target ordering operator to meet std::sort requirements

`std::sort` requires strict-weak ordering where `a == b` is false.
This commit is contained in:
Gusts Kaksis
2024-10-10 15:57:02 -04:00
committed by Brad King
parent c98a57fcb0
commit 80d0770250
+3
View File
@@ -1362,6 +1362,9 @@ struct cmCompareTargets
{
std::string const& a = l->GetTarget()->GetName();
std::string const& b = r->GetTarget()->GetName();
if (a == b) {
return false;
}
if (a == "ALL_BUILD"_s) {
return true;
}