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()