浏览代码

ERR: Missed one EscapeSpaces call.

Brad King 24 年之前
父节点
当前提交
a04fa127a8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmUnixMakefileGenerator.cxx

+ 2 - 1
Source/cmUnixMakefileGenerator.cxx

@@ -430,7 +430,8 @@ void cmUnixMakefileGenerator::OutputCustomRules(std::ostream& fout)
               commandFiles.m_Outputs.begin();
             output != commandFiles.m_Outputs.end(); ++output)
           {
-          fout << output->c_str() << ": " << source.c_str();
+          std::string src = cmSystemTools::EscapeSpaces(source.c_str());
+          fout << output->c_str() << ": " << src.c_str();
           // Write out all the dependencies for this rule.
           for(std::set<std::string>::const_iterator d =
                 commandFiles.m_Depends.begin();