From 38b8600ee19929d44977c6cc67a9bbda50509587 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Wed, 21 Feb 2024 08:39:43 -0800 Subject: [PATCH] try a workaround --- third_party/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)