Update to GoogleTest 1.11.0 (#8813)
authoryoni206 <yoni206@users.noreply.github.com>
Tue, 31 May 2022 15:47:36 +0000 (18:47 +0300)
committerGitHub <noreply@github.com>
Tue, 31 May 2022 15:47:36 +0000 (08:47 -0700)
Using GoogleTest 1.10.0, when trying to build unit tests on m1 mac an error about deprecated methods fails the compilation of gtest.

cmake/FindGTest.cmake

index b75e0f6246ca8641987f8a24741531fe4161a898..746dbc5d6aa8b339dcc2ab0baa696e3a8b21d29a 100644 (file)
@@ -32,13 +32,13 @@ if(NOT GTest_FOUND_SYSTEM)
 
     include(ExternalProject)
 
-    set(GTest_VERSION "1.10.0")
+    set(GTest_VERSION "1.11.0")
 
     ExternalProject_Add(
         GTest-EP
         ${COMMON_EP_CONFIG}
         URL https://github.com/google/googletest/archive/refs/tags/release-${GTest_VERSION}.tar.gz
-        URL_HASH SHA1=9c89be7df9c5e8cb0bc20b3c4b39bf7e82686770
+        URL_HASH SHA1=7b100bb68db8df1060e178c495f3cbe941c9b058
         DOWNLOAD_NAME gtest.tar.gz
         CMAKE_ARGS
           -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>