BUG: fix for 6280, -E time was not sending back return value

This commit is contained in:
Bill Hoffman 2008-10-01 16:16:43 -04:00
parent 12be7c21d0
commit 05f908e08c
1 changed files with 3 additions and 3 deletions

View File

@ -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