File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 55# Add a custom build type: Coverage
66set (CMAKE_CXX_FLAGS_COVERAGE
77 "${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
8- CACHE STRING "Flags used by the C++ compiler during coverage builds." FORCE)
8+ CACHE STRING "Flags used by the C++ compiler during coverage builds." FORCE
9+ )
910set (CMAKE_C_FLAGS_COVERAGE
1011 "${CMAKE_C_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
11- CACHE STRING "Flags used by the C compiler during coverage builds." FORCE)
12+ CACHE STRING "Flags used by the C compiler during coverage builds." FORCE
13+ )
1214set (CMAKE_EXE_LINKER_FLAGS_COVERAGE
1315 "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -Wl,-lgcov"
14- CACHE STRING "Flags used for linking binaries during coverage builds." FORCE)
16+ CACHE STRING "Flags used for linking binaries during coverage builds." FORCE
17+ )
1518set (CMAKE_SHARED_LINKER_FLAGS_COVERAGE
1619 "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -Wl,-lgcov"
17- CACHE STRING "Flags used by the shared libraries linker during coverage builds." FORCE)
20+ CACHE STRING "Flags used by the shared libraries linker during coverage builds." FORCE
21+ )
1822
1923mark_as_advanced (CMAKE_CXX_FLAGS_COVERAGE CMAKE_C_FLAGS_COVERAGE CMAKE_EXE_LINKER_FLAGS_COVERAGE
20- CMAKE_SHARED_LINKER_FLAGS_COVERAGE)
24+ CMAKE_SHARED_LINKER_FLAGS_COVERAGE
25+ )
You can’t perform that action at this time.
0 commit comments