ENH: add ability to use ; separated lists in SET and expand them for addexecutable and addlibrary

This commit is contained in:
Bill Hoffman
2002-03-29 11:04:19 -05:00
parent 7359c6bd16
commit dbdb0adce8
4 changed files with 30 additions and 8 deletions
+4 -3
View File
@@ -18,14 +18,15 @@
#include "cmCacheManager.h"
// cmExecutableCommand
bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& argsIn)
{
if(args.size() < 2 )
if(argsIn.size() < 2 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
std::vector<std::string> args;
cmSystemTools::ExpandListArguments(argsIn, args);
std::vector<std::string>::const_iterator s = args.begin();
std::string exename = *s;