浏览代码

ENH: support semi-colon format (list of args as string)

Sebastien Barre 23 年之前
父节点
当前提交
c617091d13
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Source/cmForEachCommand.cxx

+ 4 - 1
Source/cmForEachCommand.cxx

@@ -85,8 +85,11 @@ ScopeEnded(cmMakefile &mf)
                        mf.GetCurrentDirectory());
 }
 
-bool cmForEachCommand::InitialPass(std::vector<std::string> const& args)
+bool cmForEachCommand::InitialPass(std::vector<std::string> const& argsIn)
 {
+  std::vector<std::string> args;
+  cmSystemTools::ExpandListArguments(argsIn, args);
+
   if(args.size() < 2 )
     {
     this->SetError("called with incorrect number of arguments");