From 9f98481a65dfb2b70f316dfecfebe722cdfc5de4 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 22 Oct 2004 21:03:56 -0400 Subject: undo last check in as it breaks borland with spaces some how --- Source/cmSystemTools.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 18d9c28..26ebdca 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -426,18 +426,15 @@ bool cmSystemTools::RunSingleCommand( { verbose = false; } - std::string argsTemp; - std::string program; - cmSystemTools::SplitProgramFromArgs(command, program, argsTemp); - std::vector args = cmSystemTools::ParseArguments(argsTemp.c_str()); - if(program.size() < 1) + std::vector args = cmSystemTools::ParseArguments(command); + + if(args.size() < 1) { return false; } std::vector argv; - argv.push_back(program.c_str()); for(std::vector::const_iterator a = args.begin(); a != args.end(); ++a) { -- cgit v0.12