Skip to content

Commit

Permalink
lestarch: removing -lgcov flag to fix macOs unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Aug 26, 2021
1 parent e92fa06 commit 6e09083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ set(CMAKE_C_EXTENSIONS OFF)
if (CMAKE_BUILD_TYPE STREQUAL "Testing" OR CMAKE_BUILD_TYPE STREQUAL "TESTING")
set(CMAKE_CXX_STANDARD 11)
add_compile_options("-g" "-DBUILD_UT" "-DPROTECTED=public" "-DPRIVATE=public" "-DSTATIC=" "-fprofile-arcs" "-ftest-coverage")
link_libraries("-lgcov" "--coverage")
link_libraries("--coverage")
# These two lines allow for F prime style coverage. They are "unsupported" CMake features, so beware....
set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)
set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
Expand Down

0 comments on commit 6e09083

Please sign in to comment.