mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
Improved checking for number of arguments passed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user