From 05f908e08c2d148d69ce7caf5e4c092955c83da6 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 1 Oct 2008 16:16:43 -0400 Subject: [PATCH] BUG: fix for 6280, -E time was not sending back return value --- Source/cmake.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f715bb2f6..9a5a5d0d6 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1173,8 +1173,8 @@ int cmake::ExecuteCMakeCommand(std::vector& args) time(&time_start); clock_start = clock(); - - cmSystemTools::RunSingleCommand(command.c_str()); + int ret =0; + cmSystemTools::RunSingleCommand(command.c_str(), 0, &ret); clock_finish = clock(); time(&time_finish); @@ -1186,7 +1186,7 @@ int cmake::ExecuteCMakeCommand(std::vector& args) << static_cast(clock_finish - clock_start) / clocks_per_sec << " s. (clock)" << "\n"; - return 0; + return ret; } // Command to calculate the md5sum of a file