浏览代码

Ninja: Shell encode the command used in custom commands

Peter Collingbourne 13 年之前
父节点
当前提交
70c39c845f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmLocalNinjaGenerator.cxx

+ 2 - 1
Source/cmLocalNinjaGenerator.cxx

@@ -334,7 +334,8 @@ void cmLocalNinjaGenerator::AppendCustomCommandLines(const cmCustomCommand *cc,
     cmdLines.push_back(cdCmd.str());
   }
   for (unsigned i = 0; i != ccg.GetNumberOfCommands(); ++i) {
-    cmdLines.push_back(ccg.GetCommand(i));
+    cmdLines.push_back(this->ConvertToOutputFormat(ccg.GetCommand(i).c_str(),
+                                                   SHELL));
     std::string& cmd = cmdLines.back();
     ccg.AppendArguments(i, cmd);
   }