Browse Source

BUG: Must return false after an error of incorrect arguments.

Brad King 23 years ago
parent
commit
cd8e26f14c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmIncludeCommand.cxx

+ 1 - 0
Source/cmIncludeCommand.cxx

@@ -24,6 +24,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args)
     {
       this->SetError("called with wrong number of arguments.  "
                      "Include only takes one file.");
+      return false;
     }
   bool optional = false;
   if(args.size() == 2)