Skip to content

Commit be3ffea

Browse files
authored
build(deps): pin GoogleTest release
Use FetchContent with a fixed GoogleTest tag and preserve archive timestamps for reproducible builds.
1 parent 029a63a commit be3ffea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ if(BUILD_TESTS)
6363
include(FetchContent)
6464
FetchContent_Declare(
6565
googletest
66-
URL https://github.com/google/googletest/archive/refs/heads/main.zip
66+
GIT_REPOSITORY https://github.com/google/googletest.git
67+
GIT_TAG v1.14.0
68+
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
6769
)
6870
FetchContent_MakeAvailable(googletest)
6971
add_executable(test_all test_all.cpp)

0 commit comments

Comments
 (0)