Commit 3504f9b9 authored by Brad King's avatar Brad King
Browse files

cmake: Fix --check-build-system argument count check (#14784)

This internal option requires two arguments, not just one.  Fix the
argument count required to recognize the option.
parent a7c956b8
......@@ -653,7 +653,7 @@ void cmake::SetArgs(const std::vector<std::string>& args,
cmSystemTools::ConvertToUnixSlashes(path);
this->SetHomeOutputDirectory(path.c_str());
}
else if((i < args.size()-1) && (arg.find("--check-build-system",0) == 0))
else if((i < args.size()-2) && (arg.find("--check-build-system",0) == 0))
{
this->CheckBuildSystemArgument = args[++i];
this->ClearBuildSystem = (atoi(args[++i].c_str()) > 0);
......
Markdown is supported
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