From c617091d13a4330ee9c4d1f3dfff362e80b1b917 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Mon, 25 Mar 2002 16:24:13 -0500 Subject: [PATCH] ENH: support semi-colon format (list of args as string) --- Source/cmForEachCommand.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx index 84b83907d..e4cca41d3 100644 --- a/Source/cmForEachCommand.cxx +++ b/Source/cmForEachCommand.cxx @@ -85,8 +85,11 @@ ScopeEnded(cmMakefile &mf) mf.GetCurrentDirectory()); } -bool cmForEachCommand::InitialPass(std::vector const& args) +bool cmForEachCommand::InitialPass(std::vector const& argsIn) { + std::vector args; + cmSystemTools::ExpandListArguments(argsIn, args); + if(args.size() < 2 ) { this->SetError("called with incorrect number of arguments");