From 40f8dcc2032ea10e56e7e928d0632aacb4b1eaa4 Mon Sep 17 00:00:00 2001 From: ado Date: Thu, 21 Jan 2021 01:45:16 +0100 Subject: [PATCH] try fix test CMakeLists --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2783f69..640aa93 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -28,10 +28,10 @@ include(doctest) enable_testing() -foreach(name IN ITEMS test_main test_parser test_converter test_extractions) +foreach(name IN ITEMS test_parser test_converter test_extractions) add_executable("${name}" "${name}.cpp") target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest) - target_compile_definitions("${name}" PRIVATE \ + target_compile_definitions("${name}" PRIVATE DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN CMAKE_GITHUB_CI) doctest_discover_tests("${name}") endforeach()