diff options
author | Brad King <brad.king@kitware.com> | 2014-03-05 16:08:02 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-03-05 16:08:02 (GMT) |
commit | a8dced5856c4dc6c2e00ee49c5ba1bc981688cef (patch) | |
tree | 7c51b70f6e4c2b710fc9e63b890b03306aafaad8 | |
parent | c9df12cceed9fdf946503ea47abb113ebaa9800e (diff) | |
parent | 3504f9b9ff8d76739f39af2bd2de8b6068431c2e (diff) | |
download | CMake-a8dced5856c4dc6c2e00ee49c5ba1bc981688cef.zip CMake-a8dced5856c4dc6c2e00ee49c5ba1bc981688cef.tar.gz CMake-a8dced5856c4dc6c2e00ee49c5ba1bc981688cef.tar.bz2 |
Merge topic 'fix-check-build-system-crash'
3504f9b9 cmake: Fix --check-build-system argument count check (#14784)
-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); |