diff options
Diffstat (limited to 'Source/cmAddDefinitionsCommand.cxx')
-rw-r--r-- | Source/cmAddDefinitionsCommand.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmAddDefinitionsCommand.cxx b/Source/cmAddDefinitionsCommand.cxx index 70846df..75f84ea 100644 --- a/Source/cmAddDefinitionsCommand.cxx +++ b/Source/cmAddDefinitionsCommand.cxx @@ -17,13 +17,16 @@ #include "cmAddDefinitionsCommand.h" // cmAddDefinitionsCommand -bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args) +bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn) { - if(args.size() < 1 ) + if(argsIn.size() < 1 ) { this->SetError("called with incorrect number of arguments"); return false; } + std::vector<std::string> args; + cmSystemTools::ExpandListArguments(argsIn, args); + for(std::vector<std::string>::const_iterator i = args.begin(); i != args.end(); ++i) { |