From d619ee2bb14b3412ca7193cd4ff4a056193189de Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Mon, 9 Sep 2024 14:43:34 +0000 Subject: [PATCH] build: fix installing GoogleTest Add the `EXCLUDE_FROM_ALL` keyword to the `FetchContent_Declare` call for GoogleTest, so that gtest/gmock are not installed with the project. Signed-off-by: Rafael Kitover --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c03f8f9c..a0e8584b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,7 @@ include(Dependencies) if(BUILD_TESTING) FetchContent_Declare(googletest URL https://github.com/google/googletest/archive/2d16ed055d09c3689d44b272adc097393de948a0.zip + EXCLUDE_FROM_ALL ) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)