From 86e7efa02ea9bb1cd4583ae11bdd6e0a1404a8f6 Mon Sep 17 00:00:00 2001 From: Aster Seker Date: Fri, 5 Sep 2025 06:21:08 +0300 Subject: [PATCH] build(deps): pin GoogleTest release Use FetchContent with a fixed GoogleTest tag and preserve archive timestamps for reproducible builds. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8a6ceb..866d1fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,9 @@ if(BUILD_TESTS) include(FetchContent) FetchContent_Declare( googletest - URL https://github.com/google/googletest/archive/refs/heads/main.zip + GIT_REPOSITORY https://github.com/google/googletest.git + GIT_TAG v1.14.0 + DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) FetchContent_MakeAvailable(googletest) add_executable(test_all test_all.cpp)