mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
ENH: add ability to use ; separated lists in SET and expand them for addexecutable and addlibrary
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user