Skip to content

Commit 45ded53

Browse files
imrichardcoledmah42LebedevRI
authored
update version of gtest to v1.15.2 (latest) and also the cmake config (#1864)
* update version of gtest to v1.15.2 (latest) and also the cmake configuration to avoid deprecation warnings * `cmake/GoogleTest.cmake.in`: do a shallow clone of google test --------- Co-authored-by: dominic <[email protected]> Co-authored-by: Roman Lebedev <[email protected]>
1 parent dafc634 commit 45ded53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/GoogleTest.cmake.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ else()
3434
message(SEND_ERROR "Did not find Google Test sources! Either pass correct path in GOOGLETEST_PATH, or enable BENCHMARK_DOWNLOAD_DEPENDENCIES, or disable BENCHMARK_USE_BUNDLED_GTEST, or disable BENCHMARK_ENABLE_GTEST_TESTS / BENCHMARK_ENABLE_TESTING.")
3535
return()
3636
else()
37-
message(WARNING "Did not find Google Test sources! Fetching from web...")
37+
message(STATUS "Did not find Google Test sources! Fetching from web...")
3838
ExternalProject_Add(
3939
googletest
4040
GIT_REPOSITORY https://github.com/google/googletest.git
41-
GIT_TAG "v1.14.0"
41+
GIT_TAG "v1.15.2"
42+
GIT_SHALLOW "ON"
4243
PREFIX "${CMAKE_BINARY_DIR}"
4344
STAMP_DIR "${CMAKE_BINARY_DIR}/stamp"
4445
DOWNLOAD_DIR "${CMAKE_BINARY_DIR}/download"

0 commit comments

Comments
 (0)