Fix bug: was expanding second arg even if not passed. crashed
This commit is contained in:
parent
1ccaa434ce
commit
6d1a312c7b
|
@ -52,9 +52,9 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
|||
}
|
||||
std::string output;
|
||||
m_Makefile->ExpandVariablesInString(args[0]);
|
||||
m_Makefile->ExpandVariablesInString(args[1]);
|
||||
if(args.size() == 2)
|
||||
{
|
||||
m_Makefile->ExpandVariablesInString(args[1]);
|
||||
cmSystemTools::MakeDirectory(args[1].c_str());
|
||||
std::string command;
|
||||
command = "cd ";
|
||||
|
|
Loading…
Reference in New Issue