diff options
author | Brad King <brad.king@kitware.com> | 2014-03-04 15:11:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-04 15:12:08 (GMT) |
commit | 3504f9b9ff8d76739f39af2bd2de8b6068431c2e (patch) | |
tree | 1ef3eb97b069f5c621dcee0881eee204522d182f /Source/cmake.cxx | |
parent | a7c956b86736ea82ade88bea6414cd6a8c84e307 (diff) | |
download | CMake-3504f9b9ff8d76739f39af2bd2de8b6068431c2e.zip CMake-3504f9b9ff8d76739f39af2bd2de8b6068431c2e.tar.gz CMake-3504f9b9ff8d76739f39af2bd2de8b6068431c2e.tar.bz2 |
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.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 33fb0fc..abbabe7 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -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); |