summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmForEachCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index 84b8390..e4cca41 100644
--- a/Source/cmForEachCommand.cxx
+++ b/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");