summaryrefslogtreecommitdiffstats
path: root/Source/cmAddDefinitionsCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-07-20 12:55:55 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-07-20 12:55:55 (GMT)
commit4823f16ebb3644c4092fa74078e5b2c72d5a2c1a (patch)
treecb32704c2923ee6d713e7cef040461bac17c7870 /Source/cmAddDefinitionsCommand.cxx
parent8dfb3d345444f2e96b4b900c74df5f0cffdb9181 (diff)
downloadCMake-4823f16ebb3644c4092fa74078e5b2c72d5a2c1a.zip
CMake-4823f16ebb3644c4092fa74078e5b2c72d5a2c1a.tar.gz
CMake-4823f16ebb3644c4092fa74078e5b2c72d5a2c1a.tar.bz2
modified to accept no arguments
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);