Fix bug: was expanding second arg even if not passed. crashed

This commit is contained in:
Sebastien Barre 2002-01-18 11:48:16 -05:00
parent 1ccaa434ce
commit 6d1a312c7b
1 changed files with 2 additions and 2 deletions

View File

@ -51,10 +51,10 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
return false; return false;
} }
std::string output; std::string output;
m_Makefile->ExpandVariablesInString(args[0]); m_Makefile->ExpandVariablesInString(args[0]);
m_Makefile->ExpandVariablesInString(args[1]);
if(args.size() == 2) if(args.size() == 2)
{ {
m_Makefile->ExpandVariablesInString(args[1]);
cmSystemTools::MakeDirectory(args[1].c_str()); cmSystemTools::MakeDirectory(args[1].c_str());
std::string command; std::string command;
command = "cd "; command = "cd ";