mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
ENH: overhaul of RunCommand on windows, if only win32 had popen...
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user