diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 0080473e4..bfa2ebff3 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -3706,7 +3706,6 @@ int cmCTest::Run(std::vectorconst& args, std::string* output) } if(arg.find("--build-nocmake",0) == 0 && i < args.size() - 1) { - i++; m_BuildNoCMake = true; } if(arg.find("--build-run-dir",0) == 0 && i < args.size() - 1)