BUG: fix command line to take -G only

This commit is contained in:
Bill Hoffman 2003-01-22 09:34:15 -05:00
parent 15e38175a4
commit c7b5bb6d2c
1 changed files with 1 additions and 1 deletions

View File

@ -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());