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:
parent
ee45a5dd5a
commit
0cf4fa578a
@ -3408,9 +3408,16 @@ void cmGlobalXCodeGenerator::AppendFlag(std::string& flags,
|
||||
for(const char* c = flag.c_str(); *c; ++c)
|
||||
{
|
||||
if(*c == '\'')
|
||||
{
|
||||
if (this->XcodeVersion >= 40)
|
||||
{
|
||||
flags += "'\\\\''";
|
||||
}
|
||||
else
|
||||
{
|
||||
flags += "\\\\'";
|
||||
}
|
||||
}
|
||||
else if(*c == '\\')
|
||||
{
|
||||
flags += "\\\\\\\\";
|
||||
|
Loading…
x
Reference in New Issue
Block a user