summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-03 13:11:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-08-03 13:11:28 (GMT)
commitdb519cae57122dc6584226aac951674b49301efc (patch)
treecbc0a697866c9c27496ebfd3fd3baea00e3db64d
parent5c02ae4ac9dec3a275d3965ccdcfdb564686dc79 (diff)
parentf7a9ed7e90cd2661b279d0bcd44d43620b8eeda1 (diff)
downloadCMake-db519cae57122dc6584226aac951674b49301efc.zip
CMake-db519cae57122dc6584226aac951674b49301efc.tar.gz
CMake-db519cae57122dc6584226aac951674b49301efc.tar.bz2
Merge topic 'fix-xcode-quoting'
f7a9ed7e Xcode: Quote strings containing a tilde (#15672)
-rw-r--r--Source/cmXCodeObject.cxx2
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.