diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a64dc39..e960910 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,8 +11,7 @@ endif() if(CMAKE_GENERATOR STREQUAL Xcode) add_executable(filesystem_test_cov filesystem_test.cpp catch.hpp) target_compile_options(filesystem_test_cov PRIVATE "$<$:--coverage>") - target_link_libraries(filesystem_test_cov PRIVATE --coverage) - target_link_libraries(filesystem_test_cov ghc_filesystem) + target_link_libraries(filesystem_test_cov PUBLIC ghc_filesystem PRIVATE --coverage) endif() if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 7.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0))