summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-04-11 22:59:34 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-04-11 22:59:34 (GMT)
commitea7888c11b8ba2a1940228eae4b87aa0dbaf7055 (patch)
tree47caac126744cfdb2ffe22f6281858a6d0e65b3c
parent23e1a28276b8fcfa6bf586ff1bd348a760fe693e (diff)
downloadCMake-ea7888c11b8ba2a1940228eae4b87aa0dbaf7055.zip
CMake-ea7888c11b8ba2a1940228eae4b87aa0dbaf7055.tar.gz
CMake-ea7888c11b8ba2a1940228eae4b87aa0dbaf7055.tar.bz2
ENH: also displays command output
-rw-r--r--Source/ccommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/ccommand.cxx b/Source/ccommand.cxx
index 00893e6..e502c24 100644
--- a/Source/ccommand.cxx
+++ b/Source/ccommand.cxx
@@ -93,11 +93,13 @@ int main(int ac, char** av)
time(&time_start);
clock_start = clock();
- cmSystemTools::RunCommand(command.c_str(), output, 0, false);
+ cmSystemTools::RunCommand(command.c_str(), output, 0, true);
clock_finish = clock();
time(&time_finish);
+ std::cout << output.c_str();
+
double clocks_per_sec = (double)CLOCKS_PER_SEC;
std::cout << "Elapsed time: "
<< (time_finish - time_start) << " s. (time)"