From d096b7b378237c72793ee03e4bdf17940aca2fe0 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Sun, 5 Feb 2017 20:19:30 +0100 Subject: [PATCH] cmake: Prevent gtest from installing its files --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5af2cdffe0..cd392eb84d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -967,7 +967,7 @@ if(GTEST_FOUND AND USE_SHARED_GTEST) else() message(STATUS "Using static gtest from Externals") include_directories(Externals/gtest/include) - add_subdirectory(Externals/gtest) + add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL) endif() enable_testing()