From 61fd23d9cd4642603579b95173fcb880676052af Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sun, 19 May 2019 12:58:16 +0200 Subject: [PATCH] Work on better CI integration. --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a4964ef..abbf00c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,8 +13,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES MSVC) target_compile_definitions(filesystem_test PRIVATE _CRT_SECURE_NO_WARNINGS) endif() if(DEFINED ENV{GHC_COVERAGE}) - target_compile_options(filesystem_test_cov PRIVATE "$<$:--coverage>") - target_link_libraries(filesystem_test_cov PUBLIC ghc_filesystem PRIVATE --coverage) + target_compile_options(filesystem_test PRIVATE "--coverage") + set_property(TARGET filesystem_test APPEND_STRING PROPERTY LINK_FLAGS " --coverage") endif() ParseAndAddCatchTests(filesystem_test filesystem_test) AddExecutableWithStdFS(std_filesystem_test filesystem_test.cpp catch.hpp)