Merge topic 'fix-12259-quote-commas-for-xcode'

d87eb35 Xcode: Quote ',' in Xcode string values (#12259)
This commit is contained in:
David Cole 2011-08-16 17:02:38 -04:00 committed by CMake Topic Stage
commit e1d4a73be0
1 changed files with 1 additions and 1 deletions

View File

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