From 907137c34a8b35cd29604a6ac729921747afe5e2 Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Wed, 7 Dec 2022 16:00:04 +0100 Subject: [PATCH] Restore add_test in else() block --- tests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4a803a537..43fcfd4ae 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -53,4 +53,9 @@ if (NOT EXTERNAL_CATCH2) catch_discover_tests( unittests WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} ) +else() + add_test(NAME unittests + COMMAND unittests + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} + ) endif()