diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index d3e4a9fe..08d99d18 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -13,6 +13,11 @@ find_package(GTest QUIET CONFIG) if(NOT ${GTEST_FOUND}) message(STATUS "Using bundled GoogleTest library.") add_subdirectory(googletest) + FetchContent_SetPopulated( + GTest + SOURCE_DIR googletest + BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/googletest + ) endif() add_subdirectory(protobuf-matchers)