diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-22 14:34:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-22 14:34:15 (GMT) |
commit | c7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (patch) | |
tree | 0a5cd887ef8493c967486926f617d2079fe1c445 | |
parent | 15e38175a435a924436fd09009ce18d31d4911b0 (diff) | |
download | CMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.zip CMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.tar.gz CMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.tar.bz2 |
BUG: fix command line to take -G only
-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 87065d0..0b3e7cb 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -236,7 +236,7 @@ void cmake::SetArgs(const std::vector<std::string>& args) (cmSystemTools::GetCurrentWorkingDirectory().c_str()); this->SetStartOutputDirectory (cmSystemTools::GetCurrentWorkingDirectory().c_str()); - if (args.size() == 2) + if (args.size() == 2 && args[1].find("-G") != 0) { this->SetHomeDirectory (cmSystemTools::CollapseFullPath(args[1].c_str()).c_str()); |