Skip to content

Commit 936c1b0

Browse files
ferdymercuryguitargeek
authored andcommitted
[googletest] move link from GH to LCG
There was a git clone failure in https://github.com/root-project/root/actions/runs/24842375265/job/72719759507?pr=22031 so maybe using LCG is more stable and more symmetric with other builtins (cherry picked from commit d161eec)
1 parent 98a75ad commit 936c1b0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

cmake/modules/SearchInstalledSoftware.cmake

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,12 +1564,15 @@ if (builtin_gtest)
15641564
set(EXTRA_GTEST_OPTS
15651565
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT})
15661566
endif()
1567-
1567+
set(ROOT_GOOGLETEST_VERSION 1.16.0) # https://github.com/google/googletest/releases/tag/v1.16.0 Date: Feb 7, 2025
1568+
set(ROOT_GOOGLETEST_HASH "78c676fc63881529bf97bf9d45948d905a66833fbfa5318ea2cd7478cb98f399")
15681569
ExternalProject_Add(
15691570
googletest
1570-
GIT_REPOSITORY https://github.com/google/googletest.git
1571-
GIT_SHALLOW 1
1572-
GIT_TAG v1.17.0
1571+
# GIT_REPOSITORY https://github.com/google/googletest.git
1572+
# GIT_SHALLOW 1
1573+
# GIT_TAG v1.17.0
1574+
URL ${lcgpackages}/googletest-${ROOT_GOOGLETEST_VERSION}.tar.gz
1575+
URL_HASH SHA256=${ROOT_GOOGLETEST_HASH}
15731576
UPDATE_COMMAND ""
15741577
# # Force separate output paths for debug and release builds to allow easy
15751578
# # identification of correct lib in subsequent TARGET_LINK_LIBRARIES commands

0 commit comments

Comments
 (0)