modified to accept no arguments
This commit is contained in:
parent
8dfb3d3454
commit
4823f16ebb
|
@ -19,10 +19,10 @@
|
||||||
// cmAddDefinitionsCommand
|
// cmAddDefinitionsCommand
|
||||||
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
|
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||||
{
|
{
|
||||||
|
// it is OK to have no arguments
|
||||||
if(argsIn.size() < 1 )
|
if(argsIn.size() < 1 )
|
||||||
{
|
{
|
||||||
this->SetError("called with incorrect number of arguments");
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
std::vector<std::string> args;
|
std::vector<std::string> args;
|
||||||
cmSystemTools::ExpandListArguments(argsIn, args);
|
cmSystemTools::ExpandListArguments(argsIn, args);
|
||||||
|
|
Loading…
Reference in New Issue