Sfoglia il codice sorgente

Xcode: Quote ',' in Xcode string values (#12259)

Johan Björk 14 anni fa
parent
commit
d87eb350f6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Source/cmXCodeObject.cxx

+ 1 - 1
Source/cmXCodeObject.cxx

@@ -241,7 +241,7 @@ void cmXCodeObject::PrintString(std::ostream& os,cmStdString String)
   // considered special by the Xcode project file parser.
   bool needQuote =
     (String.empty() ||
-     String.find_first_of(" <>.+-=@$[]") != String.npos);
+     String.find_first_of(" <>.+-=@$[],") != String.npos);
   const char* quote = needQuote? "\"" : "";
 
   // Print the string, quoted and escaped as necessary.