From c7b5bb6d2c11aa18d35670eb6c737ac70646efe3 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 22 Jan 2003 09:34:15 -0500 Subject: BUG: fix command line to take -G only --- Source/cmake.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& 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()); -- cgit v0.12