summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-22 14:34:15 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-22 14:34:15 (GMT)
commitc7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (patch)
tree0a5cd887ef8493c967486926f617d2079fe1c445
parent15e38175a435a924436fd09009ce18d31d4911b0 (diff)
downloadCMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.zip
CMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.tar.gz
CMake-c7b5bb6d2c11aa18d35670eb6c737ac70646efe3.tar.bz2
BUG: fix command line to take -G only
-rw-r--r--Source/cmake.cxx2
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());