CTest: notify user if gcov cannot be found
Emit an error message when we're performing coverage using gcov and the gcov executable cannot be found.
This commit is contained in:
parent
14170273fe
commit
0a6f028067
|
@ -871,6 +871,12 @@ int cmCTestCoverageHandler::HandleGCovCoverage(
|
|||
{
|
||||
std::string gcovCommand
|
||||
= this->CTest->GetCTestConfiguration("CoverageCommand");
|
||||
if (gcovCommand.empty())
|
||||
{
|
||||
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
||||
"Could not find gcov." << std::endl);
|
||||
return 0;
|
||||
}
|
||||
std::string gcovExtraFlags
|
||||
= this->CTest->GetCTestConfiguration("CoverageExtraFlags");
|
||||
|
||||
|
|
Loading…
Reference in New Issue