From 6a2f34bff3734e0d1fd987cdedb000b9f5df020d Mon Sep 17 00:00:00 2001 From: kongr45gpen <electrovesta@gmail.com> Date: Sun, 18 Nov 2018 13:37:46 +0200 Subject: [PATCH] Check for the Catch2 CMake file instead of the entire directory --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b22d21b0..ecb94afa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ add_custom_target(check # Specify the .cpp files for the executables add_executable(ecss_services src/main.cpp src/Message.cpp src/Service.cpp src/Services/TestService.cpp) -IF(EXISTS lib/Catch2) +IF(EXISTS lib/Catch2/CMakeLists.txt) add_subdirectory(lib/Catch2) add_executable(tests src/Message.cpp src/Service.cpp src/Services/TestService.cpp tests/tests.cpp tests/Message.cpp) target_link_libraries(tests Catch2::Catch2) -- GitLab