diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-07-31 11:41:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-31 12:44:27 (GMT) |
commit | f7a9ed7e90cd2661b279d0bcd44d43620b8eeda1 (patch) | |
tree | d71c8f5b768c6364c916b754ffb1b86d0b288337 /Source/cmXCodeObject.cxx | |
parent | 3a0db0223b8c10cfaa6984253d794ab97425adf9 (diff) | |
download | CMake-f7a9ed7e90cd2661b279d0bcd44d43620b8eeda1.zip CMake-f7a9ed7e90cd2661b279d0bcd44d43620b8eeda1.tar.gz CMake-f7a9ed7e90cd2661b279d0bcd44d43620b8eeda1.tar.bz2 |
Xcode: Quote strings containing a tilde (#15672)
Since commit v3.3.0-rc1~183^2 (Xcode: Refine quoting rules for Strings,
2015-04-09) we no longer quote strings containing a period ('.').
However, file names like "icon29x29~ipad.png" still need quoting because
they contain a tilde ('~'). Add tilde to our explicit list of
characters that need quoting because such file names will no longer
happen to be quoted because they contain a period.
Diffstat (limited to 'Source/cmXCodeObject.cxx')
-rw-r--r-- | Source/cmXCodeObject.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx index e72d315..ba6e395 100644 --- a/Source/cmXCodeObject.cxx +++ b/Source/cmXCodeObject.cxx @@ -243,7 +243,7 @@ void cmXCodeObject::PrintString(std::ostream& os,std::string String) bool needQuote = (String.empty() || String.find("//") != String.npos || - String.find_first_of(" <>+-*=@[](){},") != String.npos); + String.find_first_of(" <>+-*=@[](){},~") != String.npos); const char* quote = needQuote? "\"" : ""; // Print the string, quoted and escaped as necessary. |