mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
Xcode4: Requires more quoting of single quote char
Specifically in per-target and per-file compiler definition string values. The Preprocessor test now passes on Xcode 4 builds after this commit.
This commit is contained in:
1 parent
ee45a5dd5a
commit
0cf4fa578a
1 file changed
+8
-1
@@ -3409,7 +3409,14 @@ void cmGlobalXCodeGenerator::AppendFlag(std::string& flags,
|
||||
{
|
||||
if(*c == '\'')
|
||||
{
|
||||
flags += "\\\\'";
|
||||
if (this->XcodeVersion >= 40)
|
||||
{
|
||||
flags += "'\\\\''";
|
||||
}
|
||||
else
|
||||
{
|
||||
flags += "\\\\'";
|
||||
}
|
||||
}
|
||||
else if(*c == '\\')
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user