summaryrefslogtreecommitdiff
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-10-02 17:23:26 -0400
committerBrad King <brad.king@kitware.com>2002-10-02 17:23:26 -0400
commitcd8e26f14c2f94898a90714b2556d361a4d81ac8 (patch)
tree40f8f1800f69c4dfe9ef8352f6f6a7f769f45342 /Source/cmIncludeCommand.cxx
parent6c2944b6fe8ae264bcb107cb11512ed36d90a586 (diff)
downloadcmake-cd8e26f14c2f94898a90714b2556d361a4d81ac8.tar.gz
BUG: Must return false after an error of incorrect arguments.
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index ce8ce855d9..e24f3808f7 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/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)