Skip to content

Commit

Permalink
added PRIVATE specifier to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpatek committed Dec 22, 2024
1 parent 71c03e2 commit 6fb3b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ target_include_directories(unit PRIVATE ${SIGFN_INCLUDE} ${CMAKE_CURRENT_SOURCE_
if(SIGFN_COVER)
if(WIN32)
message("skipping code coverage for windows")
target_link_libraries(unit Maxtest::Maxtest)
target_link_libraries(unit PRIVATE Maxtest::Maxtest)
else()
target_compile_options(unit PRIVATE -fprofile-arcs -ftest-coverage -g -O0)
target_link_libraries(unit Maxtest::Maxtest PRIVATE gcov "--coverage")
target_link_libraries(unit PRIVATE Maxtest::Maxtest gcov "--coverage")
add_custom_target(
cover
DEPENDS unit)
Expand All @@ -28,7 +28,7 @@ if(SIGFN_COVER)
COMMAND gcovr -r ${CMAKE_CURRENT_SOURCE_DIR}/.. -e ${CMAKE_CURRENT_SOURCE_DIR})
endif()
else()
target_link_libraries(unit Maxtest::Maxtest)
target_link_libraries(unit PRIVATE Maxtest::Maxtest)
endif()

maxtest_add_test(unit sigfn_handle "")
Expand Down

0 comments on commit 6fb3b17

Please sign in to comment.