From e8dbdcaf0ca3ccf785bae6b2eeb49c03a0a2edf3 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 22 Jul 2002 10:01:53 -0400 Subject: [PATCH] allows no arguments --- Source/cmIncludeDirectoryCommand.cxx | 3 +-- Source/cmLinkLibrariesCommand.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx index 48d51fd9b..f1d7ba9ce 100644 --- a/Source/cmIncludeDirectoryCommand.cxx +++ b/Source/cmIncludeDirectoryCommand.cxx @@ -21,8 +21,7 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector const& args { if(argsIn.size() < 1 ) { - this->SetError("called with incorrect number of arguments"); - return false; + return true; } std::vector args; cmSystemTools::ExpandListArguments(argsIn, args); diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx index a97143f0a..ce2625207 100644 --- a/Source/cmLinkLibrariesCommand.cxx +++ b/Source/cmLinkLibrariesCommand.cxx @@ -21,8 +21,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector const& argsIn) { if(argsIn.size() < 1 ) { - this->SetError("called with incorrect number of arguments"); - return false; + return true; } std::vector args; cmSystemTools::ExpandListArguments(argsIn, args);