diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-01 20:16:43 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-01 20:16:43 (GMT) |
commit | 05f908e08c2d148d69ce7caf5e4c092955c83da6 (patch) | |
tree | b8d6b9f68c9c92b62f7fae34407c947c6021e83d | |
parent | 12be7c21d0f4f4e8980850395284ca11608927fd (diff) | |
download | CMake-05f908e08c2d148d69ce7caf5e4c092955c83da6.zip CMake-05f908e08c2d148d69ce7caf5e4c092955c83da6.tar.gz CMake-05f908e08c2d148d69ce7caf5e4c092955c83da6.tar.bz2 |
BUG: fix for 6280, -E time was not sending back return value
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index f715bb2..9a5a5d0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1173,8 +1173,8 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& 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<std::string>& args) << static_cast<double>(clock_finish - clock_start) / clocks_per_sec << " s. (clock)" << "\n"; - return 0; + return ret; } // Command to calculate the md5sum of a file |