Kaynağa Gözat

Merge topic 'fix-xcode4-test-failures'

0cf4fa5 Xcode4: Requires more quoting of single quote char
David Cole 14 yıl önce
ebeveyn
işleme
925af96eda
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 8 1
      Source/cmGlobalXCodeGenerator.cxx

+ 8 - 1
Source/cmGlobalXCodeGenerator.cxx

@@ -3467,7 +3467,14 @@ void cmGlobalXCodeGenerator::AppendFlag(std::string& flags,
     {
     if(*c == '\'')
       {
-      flags += "\\\\'";
+      if (this->XcodeVersion >= 40)
+        {
+        flags += "'\\\\''";
+        }
+      else
+        {
+        flags += "\\\\'";
+        }
       }
     else if(*c == '\\')
       {