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