瀏覽代碼

ENH: Fix escaping on windows

Andy Cedilnik 22 年之前
父節點
當前提交
4515c33d32
共有 1 個文件被更改,包括 2 次插入14 次删除
  1. 2 14
      Source/cmSystemTools.cxx

+ 2 - 14
Source/cmSystemTools.cxx

@@ -324,20 +324,8 @@ bool cmSystemTools::RunSingleCommand(
       ++c;
       ++c;
       while(*c && *c != '"')
       while(*c && *c != '"')
         {
         {
-        if(*c == '\\')
-          {
-          ++c;
-          if(*c)
-            {
-            arg.append(1, *c);
-            ++c;
-            }
-          }
-        else
-          {
-          arg.append(1, *c);
-          ++c;
-          }
+        arg.append(1, *c);
+        ++c;
         }
         }
       if(*c)
       if(*c)
         {
         {