mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 02:19:10 -05:00
Xcode: case-insensitive target ordering
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user