diff options
author | Brad King <brad.king@kitware.com> | 2014-02-28 14:48:32 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-02-28 14:48:32 (GMT) |
commit | 47896189aafc011b4a726716a9c5bc433b13edd6 (patch) | |
tree | bd5e056e64ef61c86e1c86b3f6ecbec29b47fd25 /Source | |
parent | 27defbd6d4547016a00a28098dab63bb95274c39 (diff) | |
parent | 0a6f0280672f3b1a638cae4cf5144c1adccef754 (diff) | |
download | CMake-47896189aafc011b4a726716a9c5bc433b13edd6.zip CMake-47896189aafc011b4a726716a9c5bc433b13edd6.tar.gz CMake-47896189aafc011b4a726716a9c5bc433b13edd6.tar.bz2 |
Merge topic 'no_gcov_error_msg'
0a6f0280 CTest: notify user if gcov cannot be found
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestCoverageHandler.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx index 3c65c55..0503d94 100644 --- a/Source/CTest/cmCTestCoverageHandler.cxx +++ b/Source/CTest/cmCTestCoverageHandler.cxx @@ -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"); |