summaryrefslogtreecommitdiff
path: root/Source/cmExecProgramCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-14 11:11:39 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-14 11:11:39 -0500
commit567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5 (patch)
tree314c6dff8d12ca7191960d97a18881e18781dd17 /Source/cmExecProgramCommand.cxx
parent7c73456401724698a1a4675d475d953d17558911 (diff)
downloadcmake-567edf0e9a8f4dcaa82ceb0ae6a586867e3687f5.tar.gz
ENH: overhaul of RunCommand on windows, if only win32 had popen...
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r--Source/cmExecProgramCommand.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index bd40613220..aea69501ab 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
{