ENH: overhaul of RunCommand on windows, if only win32 had popen...

This commit is contained in:
Bill Hoffman
2002-03-14 11:11:39 -05:00
parent 7c73456401
commit 567edf0e9a
6 changed files with 209 additions and 21 deletions

View File

@@ -29,12 +29,8 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& args)
if(args.size() == 2)
{
cmSystemTools::MakeDirectory(args[1].c_str());
std::string command;
command = "cd ";
command += cmSystemTools::ConvertToOutputPath(args[1].c_str());
command += " && ";
command += args[0].c_str();
cmSystemTools::RunCommand(command.c_str(), output);
cmSystemTools::RunCommand(args[0].c_str(), output,
cmSystemTools::ConvertToOutputPath(args[1].c_str()).c_str());
}
else
{