File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ function(target_code_coverage TARGET_NAME)
259
259
elseif (CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
260
260
"GNU" )
261
261
target_compile_options (${TARGET_NAME} ${TARGET_VISIBILITY} -fprofile-arcs
262
- -ftest-coverage)
262
+ -ftest-coverage -fno-elide-constructors -fno-default-inline )
263
263
target_link_libraries (${TARGET_NAME} ${TARGET_LINK_VISIBILITY} gcov)
264
264
endif ()
265
265
@@ -501,7 +501,7 @@ function(add_code_coverage)
501
501
add_link_options (-fprofile-instr-generate -fcoverage-mapping)
502
502
elseif (CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
503
503
"GNU" )
504
- add_compile_options (-fprofile-arcs -ftest-coverage)
504
+ add_compile_options (-fprofile-arcs -ftest-coverage -fno-elide-constructors -fno-default-inline )
505
505
link_libraries (gcov)
506
506
endif ()
507
507
endif ()
You can’t perform that action at this time.
0 commit comments