From cfe274f1e1aa2c3947a3e8019b613142271c1c42 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 16 Aug 2022 19:03:08 +0200 Subject: [PATCH] fix tests (copy paste error) --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 78fd327..87627a8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,10 +10,10 @@ if(Catch2_FOUND) # Catch 2.x / 3.x add_executable(all_tests main.cpp ${sources_tests}) if(TARGET Catch2::Catch2WithMain) # Catch 3.x target_link_libraries(all_tests - PRIVATE Catch2::Catch2WithMain ${PROJECT_NAME}) + PRIVATE Catch2::Catch2WithMain ${PROJECT_NAME}_lib) else() # Catch 2.x target_link_libraries(all_tests - PRIVATE Catch2::Catch2 ${PROJECT_NAME}) + PRIVATE Catch2::Catch2 ${PROJECT_NAME}_lib) endif() target_include_directories(all_tests PRIVATE "/usr/include/catch2") catch_discover_tests(all_tests EXTRA_ARGS "${EXTRA_TEST_ARGS}")