From 32c2ed2ef37990060238d2e136b255d7074f6ae4 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik <andy.cedilnik@kitware.com> Date: Sun, 3 Aug 2003 22:33:35 -0400 Subject: ENH: Use the new signature --- Source/cmBuildNameCommand.cxx | 3 +-- Source/cmTryRunCommand.cxx | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx index a650fad..06b6658 100644 --- a/Source/cmBuildNameCommand.cxx +++ b/Source/cmBuildNameCommand.cxx @@ -50,8 +50,7 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args) if(m_Makefile->GetDefinition("UNIX")) { buildname = ""; - cmSystemTools::RunCommand("uname -a", - buildname); + cmSystemTools::RunSingleCommand("uname -a", &buildname); if(buildname.length()) { std::string RegExp = "([^ ]*) [^ ]* ([^ ]*) "; diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx index d1dd9fc..f8c039e 100644 --- a/Source/cmTryRunCommand.cxx +++ b/Source/cmTryRunCommand.cxx @@ -99,7 +99,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv) { finalCommand += runArgs; } - cmSystemTools::RunCommand(finalCommand.c_str(), output, retVal, 0, false); + int timeout = 0; + cmSystemTools::RunSingleCommand(finalCommand.c_str(), &output, &retVal, + 0, false, timeout); // set the run var char retChar[1000]; sprintf(retChar,"%i",retVal); -- cgit v0.12