summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-08 13:06:59 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-08 13:06:59 (GMT)
commit710968e37171681cb32e74d6249a4fd7daacf42e (patch)
tree77b4ae1a72c3c0e9f63ad7062ce4084e928e80ee /Source
parentbddd8c055104d7c66b01799a4c99a2bbb6da8f00 (diff)
parentdfd6f1f2904ca577743adb5f86f1722359723a0b (diff)
downloadCMake-710968e37171681cb32e74d6249a4fd7daacf42e.zip
CMake-710968e37171681cb32e74d6249a4fd7daacf42e.tar.gz
CMake-710968e37171681cb32e74d6249a4fd7daacf42e.tar.bz2
Merge topic 'xcode-quote-path'
dfd6f1f2 Xcode: Also quote strings containing // (#15487)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmXCodeObject.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 3302a8d..5a90fd9 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -242,6 +242,7 @@ void cmXCodeObject::PrintString(std::ostream& os,std::string String)
// considered special by the Xcode project file parser.
bool needQuote =
(String.empty() ||
+ String.find("//") != String.npos ||
String.find_first_of(" <>.+-=@$[],") != String.npos);
const char* quote = needQuote? "\"" : "";