Merge branch 'fix-xcode-quoting' into release
This commit is contained in:
commit
bcba0d3099
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue