From 30369451f44bd7696932b02ce38168864c4eb872 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 10 Dec 2021 13:28:08 +0100 Subject: CMake: fix warning with external googletest Recent CMake versions throw the following warning when building googletest 1.8.1. Bumping to 1.11.0 that has a minimum version of 2.8.12 fixes that ``` CMake Deprecation Warning at build/googletest-src/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. ``` --- test/googletest/CMakeLists.txt.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/googletest/CMakeLists.txt.in b/test/googletest/CMakeLists.txt.in index b558e203..63413c0a 100644 --- a/test/googletest/CMakeLists.txt.in +++ b/test/googletest/CMakeLists.txt.in @@ -1,12 +1,12 @@ # Source https://github.com/google/googletest/blob/master/googletest/README.md -cmake_minimum_required(VERSION 2.8.2) # minimum version for ExternalProject_Add +cmake_minimum_required(VERSION 2.8.12) project(googletest-download NONE) include(ExternalProject) ExternalProject_Add(googletest - URL https://github.com/google/googletest/archive/release-1.8.1.zip - URL_HASH SHA1=7b41ea3682937069e3ce32cb06619fead505795e + URL https://github.com/google/googletest/archive/release-1.11.0.zip + URL_HASH SHA1=9ffb7b5923f4a8fcdabf2f42c6540cce299f44c0 DOWNLOAD_NO_PROGRESS ON SOURCE_DIR "${PROJ_BINARY_DIR}/googletest-src" BINARY_DIR "${PROJ_BINARY_DIR}/googletest-build" -- cgit v1.2.3