Skip to content

Commit

Permalink
build system changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nixiz committed Sep 11, 2020
1 parent b572124 commit 8f321a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
#

if (${CMAKE_PROJECT_NAME}_ENABLE_CODE_COVERAGE)
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC -O0 -g -fprofile-arcs -ftest-coverage)
target_link_options(${CMAKE_PROJECT_NAME} PUBLIC -fprofile-arcs -ftest-coverage)
target_compile_options(${CMAKE_PROJECT_NAME} INTERFACE -O0 -g -fprofile-arcs -ftest-coverage)
target_link_options(${CMAKE_PROJECT_NAME} INTERFACE -fprofile-arcs -ftest-coverage)
verbose_message("Code coverage is enabled and provided with GCC.")
endif()

Expand Down

0 comments on commit 8f321a0

Please sign in to comment.