summaryrefslogtreecommitdiffstats
path: root/Source/cmAddDefinitionsCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmAddDefinitionsCommand.cxx')
-rw-r--r--Source/cmAddDefinitionsCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmAddDefinitionsCommand.cxx b/Source/cmAddDefinitionsCommand.cxx
index 75f84ea..14f65b36 100644
--- a/Source/cmAddDefinitionsCommand.cxx
+++ b/Source/cmAddDefinitionsCommand.cxx
@@ -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);