Merge topic 'no_gcov_error_msg'
0a6f0280 CTest: notify user if gcov cannot be found
This commit is contained in:
commit
47896189aa
@ -871,6 +871,12 @@ int cmCTestCoverageHandler::HandleGCovCoverage(
|
|||||||
{
|
{
|
||||||
std::string gcovCommand
|
std::string gcovCommand
|
||||||
= this->CTest->GetCTestConfiguration("CoverageCommand");
|
= this->CTest->GetCTestConfiguration("CoverageCommand");
|
||||||
|
if (gcovCommand.empty())
|
||||||
|
{
|
||||||
|
cmCTestLog(this->CTest, ERROR_MESSAGE,
|
||||||
|
"Could not find gcov." << std::endl);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
std::string gcovExtraFlags
|
std::string gcovExtraFlags
|
||||||
= this->CTest->GetCTestConfiguration("CoverageExtraFlags");
|
= this->CTest->GetCTestConfiguration("CoverageExtraFlags");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user