Fix bug: was expanding second arg even if not passed. crashed
This commit is contained in:
parent
1ccaa434ce
commit
6d1a312c7b
|
@ -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 ";
|
||||||
|
|
Loading…
Reference in New Issue