summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 02:35:52 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-04 02:35:52 (GMT)
commit369a4188e6fcf8a6b9244e05822e517f145abf37 (patch)
tree273357df2b50c2ef9a4dcec40ef35ad883647a1e /Source/cmake.cxx
parent1d3921b4caf02e67b5d250ea50ced2d1fdbd2329 (diff)
downloadCMake-369a4188e6fcf8a6b9244e05822e517f145abf37.zip
CMake-369a4188e6fcf8a6b9244e05822e517f145abf37.tar.gz
CMake-369a4188e6fcf8a6b9244e05822e517f145abf37.tar.bz2
ENH: Use the new RunCommand
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 42c4f8f..6eaba36 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -591,13 +591,11 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
time(&time_start);
clock_start = clock();
- cmSystemTools::RunCommand(command.c_str(), output, 0, true);
+ cmSystemTools::RunSingleCommand(command.c_str());
clock_finish = clock();
time(&time_finish);
- std::cout << output.c_str();
-
double clocks_per_sec = (double)CLOCKS_PER_SEC;
std::cout << "Elapsed time: "
<< (long)(time_finish - time_start) << " s. (time)"
@@ -621,10 +619,10 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
}
int retval = 0;
- if ( cmSystemTools::RunCommand(command.c_str(), output, retval,
- directory.c_str(), false) )
+ int timeout = 0;
+ if ( cmSystemTools::RunSingleCommand(command.c_str(), 0, &retval,
+ directory.c_str(), true, timeout) )
{
- std::cout << output.c_str();
return retval;
}