mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 13:48:33 -05:00
modified to accept no arguments
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
// cmAddDefinitionsCommand
|
||||
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
{
|
||||
// it is OK to have no arguments
|
||||
if(argsIn.size() < 1 )
|
||||
{
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
std::vector<std::string> args;
|
||||
cmSystemTools::ExpandListArguments(argsIn, args);
|
||||
|
||||
Reference in New Issue
Block a user