From d4387d33ef20af8e0b80d0c6bd7329b416ab2de5 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 2 May 2019 23:35:23 +0800 Subject: [PATCH] cmake: do not install googletest the new googletest added an option to allow its consumer to skip this, so instead of patching googletest, let's use this option. Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0c5d02377bf..73ed94ab9ae 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -529,6 +529,7 @@ if(WITH_TESTS) find_package(GTest REQUIRED) find_package(GMock REQUIRED) else() + set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) add_subdirectory(googletest/googlemock) add_library(GMock::GMock ALIAS gmock) add_library(GMock::Main ALIAS gmock_main)