summaryrefslogtreecommitdiffstats
path: root/Source/cmForEachCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-03-25 21:24:13 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-03-25 21:24:13 (GMT)
commitc617091d13a4330ee9c4d1f3dfff362e80b1b917 (patch)
treeb74f06ad796137d80f434286ac19aa54b4ecd814 /Source/cmForEachCommand.cxx
parent32fb77fff2a4a95e4f3d505e4e879c06713350d3 (diff)
downloadCMake-c617091d13a4330ee9c4d1f3dfff362e80b1b917.zip
CMake-c617091d13a4330ee9c4d1f3dfff362e80b1b917.tar.gz
CMake-c617091d13a4330ee9c4d1f3dfff362e80b1b917.tar.bz2
ENH: support semi-colon format (list of args as string)
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-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");