diff options
author | Brad King <brad.king@kitware.com> | 2015-04-08 13:06:59 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-04-08 13:06:59 (GMT) |
commit | 710968e37171681cb32e74d6249a4fd7daacf42e (patch) | |
tree | 77b4ae1a72c3c0e9f63ad7062ce4084e928e80ee /Source | |
parent | bddd8c055104d7c66b01799a4c99a2bbb6da8f00 (diff) | |
parent | dfd6f1f2904ca577743adb5f86f1722359723a0b (diff) | |
download | CMake-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.cxx | 1 |
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? "\"" : ""; |