mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user