bilke / cmake-modules

Additional CMake functionality. Most of the modules are from Ryan Pavlik (https://github.com/rpavlik/cmake-modules)
Boost Software License 1.0
547 stars 214 forks source link

CodeCoverage.cmake: Fix directory exclusion #43

Closed oleksandrkozlov closed 4 years ago

oleksandrkozlov commented 4 years ago

This change fixes an incorrect directory exception in the code coverage CMake module. An EXCLUDE parameter of the setup_target_for_coverage_lcov() function didn't work. The folders were not excluded. The reason is that gcov requires to wrap each excludes in quotes, but CMake removes double-quotes. Therefore the solution is to use single-quotes.

oleksandrkozlov commented 4 years ago

Yeah, you are right. It looks like I used APIs incorrectly.