Browse Source

BUG: Fixed check of number of arguments.

Brad King 22 years ago
parent
commit
bfd79e99e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmAddCustomTargetCommand.cxx

+ 1 - 1
Source/cmAddCustomTargetCommand.cxx

@@ -21,7 +21,7 @@ bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string> const& args)
 {
 {
   bool all = false;
   bool all = false;
   
   
-  if(args.size() < 2 )
+  if(args.size() < 1 )
     {
     {
     this->SetError("called with incorrect number of arguments");
     this->SetError("called with incorrect number of arguments");
     return false;
     return false;