Browse Source

Xcode: case-insensitive target ordering

Gusts Kaksis 1 năm trước cách đây
mục cha
commit
e3be24da68
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      Source/cmGlobalXCodeGenerator.cxx

+ 5 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -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;
   }
 };