diff options
Diffstat (limited to 'cmake/modules/CompilerSetup.cmake')
| -rw-r--r-- | cmake/modules/CompilerSetup.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/CompilerSetup.cmake b/cmake/modules/CompilerSetup.cmake index 82d0b2d..40c297f 100644 --- a/cmake/modules/CompilerSetup.cmake +++ b/cmake/modules/CompilerSetup.cmake @@ -113,3 +113,10 @@ set( CACHE STRING "Flags used by the compiler during release builds for minimum size." FORCE ) + +# Export additional C++ compile flags for coverage builds +set( + CMAKE_CXX_FLAGS_COVERAGE "-O0 -g --coverage" + CACHE STRING "Flags used by the compiler during coverage builds." + FORCE + ) |
