Browse Source

ENH: make sure escaping is done for strings on the command line

Bill Hoffman 18 năm trước cách đây
mục cha
commit
8c39efe854
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Source/cmGlobalXCodeGenerator.cxx

+ 1 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -433,6 +433,7 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
     lg->AppendFlags(flags, cmtarget.GetProperty("COMPILE_FLAGS"));
     }
   lg->AppendFlags(flags, sf->GetProperty("COMPILE_FLAGS"));
+  cmSystemTools::ReplaceString(flags, "\"", "\\\"");
   cmXCodeObject* fileRef = 
     this->CreateObject(cmXCodeObject::PBXFileReference);