From 0172df74316351868c215f735e5a2538b10d71fb Mon Sep 17 00:00:00 2001 From: Merry Date: Sun, 10 Jul 2022 10:09:12 +0100 Subject: [PATCH] CMakeLists: Only add tests if MASTER_PROJECT --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f46b32..9f9b919 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,7 @@ endif() # Project files add_subdirectory(src) -if (TARGET Catch2::Catch2) +if (TARGET Catch2::Catch2 AND MASTER_PROJECT) add_subdirectory(tests) endif()