summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-05-26 16:51:40 (GMT)
committerPavel Solodovnikov <hellyeahdominate@gmail.com>2017-05-26 16:51:40 (GMT)
commit25486156305dc0693366c0c7e5dc6c7035ab49a9 (patch)
tree0f2b2fb94fb0df31cefcda403bedc18769195dec
parent86dc86dd6c66a6d61234efcddddddf466a6597d2 (diff)
downloadCMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.zip
CMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.tar.gz
CMake-25486156305dc0693366c0c7e5dc6c7035ab49a9.tar.bz2
Improved checking for number of arguments passed
-rw-r--r--Source/cmAuxSourceDirectoryCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx
index 8e34cb1..847a416 100644
--- a/Source/cmAuxSourceDirectoryCommand.cxx
+++ b/Source/cmAuxSourceDirectoryCommand.cxx
@@ -18,7 +18,7 @@ class cmExecutionStatus;
bool cmAuxSourceDirectoryCommand::InitialPass(
std::vector<std::string> const& args, cmExecutionStatus&)
{
- if (args.size() < 2 || args.size() > 2) {
+ if (args.size() != 2) {
this->SetError("called with incorrect number of arguments");
return false;
}