BUG: fix for 6280, -E time was not sending back return value
This commit is contained in:
parent
12be7c21d0
commit
05f908e08c
|
@ -1173,8 +1173,8 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
||||||
|
|
||||||
time(&time_start);
|
time(&time_start);
|
||||||
clock_start = clock();
|
clock_start = clock();
|
||||||
|
int ret =0;
|
||||||
cmSystemTools::RunSingleCommand(command.c_str());
|
cmSystemTools::RunSingleCommand(command.c_str(), 0, &ret);
|
||||||
|
|
||||||
clock_finish = clock();
|
clock_finish = clock();
|
||||||
time(&time_finish);
|
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
|
<< static_cast<double>(clock_finish - clock_start) / clocks_per_sec
|
||||||
<< " s. (clock)"
|
<< " s. (clock)"
|
||||||
<< "\n";
|
<< "\n";
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Command to calculate the md5sum of a file
|
// Command to calculate the md5sum of a file
|
||||||
|
|
Loading…
Reference in New Issue