From 45e55b383336602ce461b048ac60e76128882722 Mon Sep 17 00:00:00 2001 From: Richard Cole Date: Tue, 22 Oct 2024 09:38:05 +0100 Subject: [PATCH] update version of gtest to v1.15.2 (latest) and also the cmake configuration to avoid deprecation warnings --- cmake/GoogleTest.cmake.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/GoogleTest.cmake.in b/cmake/GoogleTest.cmake.in index ce653ac375..cbe1c81fe0 100644 --- a/cmake/GoogleTest.cmake.in +++ b/cmake/GoogleTest.cmake.in @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.10..3.22) project(googletest-download NONE) @@ -34,11 +34,11 @@ else() message(SEND_ERROR "Did not find Google Test sources! Either pass correct path in GOOGLETEST_PATH, or enable BENCHMARK_DOWNLOAD_DEPENDENCIES, or disable BENCHMARK_USE_BUNDLED_GTEST, or disable BENCHMARK_ENABLE_GTEST_TESTS / BENCHMARK_ENABLE_TESTING.") return() else() - message(WARNING "Did not find Google Test sources! Fetching from web...") + message(STATUS "Did not find Google Test sources! Fetching from web...") ExternalProject_Add( googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG "release-1.11.0" + GIT_TAG "v1.15.2" PREFIX "${CMAKE_BINARY_DIR}" STAMP_DIR "${CMAKE_BINARY_DIR}/stamp" DOWNLOAD_DIR "${CMAKE_BINARY_DIR}/download"