Commit 25486156 authored by Pavel Solodovnikov's avatar Pavel Solodovnikov
Browse files

Improved checking for number of arguments passed

parent 86dc86dd
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment