mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 08:51:52 +08:00
Fix bug: was expanding second arg even if not passed. crashed
This commit is contained in:
@@ -51,10 +51,10 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
return false;
|
||||
}
|
||||
std::string output;
|
||||
m_Makefile->ExpandVariablesInString(args[0]);
|
||||
m_Makefile->ExpandVariablesInString(args[1]);
|
||||
m_Makefile->ExpandVariablesInString(args[0]);
|
||||
if(args.size() == 2)
|
||||
{
|
||||
m_Makefile->ExpandVariablesInString(args[1]);
|
||||
cmSystemTools::MakeDirectory(args[1].c_str());
|
||||
std::string command;
|
||||
command = "cd ";
|
||||
|
Reference in New Issue
Block a user