Jelajahi Sumber

ENH: Use the new signature

Andy Cedilnik 22 tahun lalu
induk
melakukan
32c2ed2ef3
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 1 2
      Source/cmBuildNameCommand.cxx
  2. 3 1
      Source/cmTryRunCommand.cxx

+ 1 - 2
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 = "([^ ]*) [^ ]* ([^ ]*) ";

+ 3 - 1
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);