Fetch googletest as .tar.gz with hardcoded hash check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user