BUG: fix for bug 1700

This commit is contained in:
Bill Hoffman 2005-04-05 11:23:08 -04:00
parent 0255dab023
commit d74d8aeb71
1 changed files with 5 additions and 0 deletions

View File

@ -1241,6 +1241,11 @@ int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
{
// Process the arguments
this->SetArgs(args);
if(cmSystemTools::GetErrorOccuredFlag())
{
CMakeCommandUsage(args[0].c_str());
return -1;
}
// set the cmake command
m_CMakeCommand = args[0];