Fetch googletest as .tar.gz with hardcoded hash check

This commit is contained in:
hashlag
2025-08-17 17:20:33 +03:00
parent 8f40c4fc05
commit 74202c9256

View File

@@ -1,9 +1,11 @@
include(FetchContent)
cmake_policy(SET CMP0135 NEW)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.17.0
URL https://github.com/google/googletest/releases/download/v1.17.0/googletest-1.17.0.tar.gz
URL_HASH SHA256=65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)