Explorar el Código

Xcode: case-insensitive target ordering

Gusts Kaksis hace 1 año
padre
commit
e3be24da68
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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;
   }
 };