diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-14 16:11:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-14 16:11:39 (GMT) |
commit | 567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5 (patch) | |
tree | 314c6dff8d12ca7191960d97a18881e18781dd17 /Source/cmExecProgramCommand.cxx | |
parent | 7c73456401724698a1a4675d475d953d17558911 (diff) | |
download | CMake-567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5.zip CMake-567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5.tar.gz CMake-567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5.tar.bz2 |
ENH: overhaul of RunCommand on windows, if only win32 had popen...
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r-- | Source/cmExecProgramCommand.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx index bd40613..aea6950 100644 --- a/Source/cmExecProgramCommand.cxx +++ b/Source/cmExecProgramCommand.cxx @@ -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 { |