Merge topic 'fix-12259-quote-commas-for-xcode'
d87eb35
Xcode: Quote ',' in Xcode string values (#12259)
This commit is contained in:
commit
e1d4a73be0
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue