Merge branch 'fix-xcode-quoting' into release

This commit is contained in:
Brad King 2015-07-31 08:56:20 -04:00
commit bcba0d3099
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ void cmXCodeObject::PrintString(std::ostream& os,std::string String)
bool needQuote = bool needQuote =
(String.empty() || (String.empty() ||
String.find("//") != String.npos || String.find("//") != String.npos ||
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.