From 4823f16ebb3644c4092fa74078e5b2c72d5a2c1a Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Sat, 20 Jul 2002 08:55:55 -0400 Subject: [PATCH] modified to accept no arguments --- Source/cmAddDefinitionsCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmAddDefinitionsCommand.cxx b/Source/cmAddDefinitionsCommand.cxx index 75f84eaf8..14f65b36b 100644 --- a/Source/cmAddDefinitionsCommand.cxx +++ b/Source/cmAddDefinitionsCommand.cxx @@ -19,10 +19,10 @@ // cmAddDefinitionsCommand bool cmAddDefinitionsCommand::InitialPass(std::vector 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 args; cmSystemTools::ExpandListArguments(argsIn, args);