diff options
author | Brad King <brad.king@kitware.com> | 2014-03-04 15:17:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-04 15:17:05 (GMT) |
commit | 51988a4fce528de090a62d5c7b4d24637542c916 (patch) | |
tree | c526afa92beda47df9d2c4749458ed33e43787e3 | |
parent | 54a4c930876eaca642ef81ff3882b7ce163dd7c4 (diff) | |
parent | 3504f9b9ff8d76739f39af2bd2de8b6068431c2e (diff) | |
download | CMake-51988a4fce528de090a62d5c7b4d24637542c916.zip CMake-51988a4fce528de090a62d5c7b4d24637542c916.tar.gz CMake-51988a4fce528de090a62d5c7b4d24637542c916.tar.bz2 |
Merge branch 'fix-check-build-system-crash' into release
-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); |