aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-12-10 13:28:08 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-12-10 15:24:05 +0100
commit30369451f44bd7696932b02ce38168864c4eb872 (patch)
tree35c9575df83149e6cd731e5bfe62383bb03d60a5 /test
parent6e67dc2b716bb25c860cd4e172b4413ac6d26ac8 (diff)
downloadPROJ-30369451f44bd7696932b02ce38168864c4eb872.tar.gz
PROJ-30369451f44bd7696932b02ce38168864c4eb872.zip
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. ```
Diffstat (limited to 'test')
-rw-r--r--test/googletest/CMakeLists.txt.in6
1 files changed, 3 insertions, 3 deletions
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"