From 243963558eae383d43238179c75cd2aebf97687a Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sun, 24 Mar 2019 10:31:29 +0100 Subject: [PATCH] Fixed cmake error in Xcode coverage test case. --- test/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))