Merge topic 'no_gcov_error_msg'

0a6f0280 CTest: notify user if gcov cannot be found
This commit is contained in:
Brad King 2014-02-28 09:48:32 -05:00 committed by CMake Topic Stage
commit 47896189aa
1 changed files with 6 additions and 0 deletions

View File

@ -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");