From d76b7042251b6f4f230a34dd38818f7af1bb991d Mon Sep 17 00:00:00 2001 From: kamilritz Date: Fri, 1 Nov 2019 09:16:41 +0100 Subject: [PATCH] Only inlcude gtest if standalone build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 884655d5af..294e62a0b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,7 +158,7 @@ add_subdirectory(l1) add_subdirectory(tecs) add_subdirectory(validation) -if(BUILD_TESTING) +if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) add_subdirectory(test) endif()