Skip to content

Commit

Permalink
Use https instead of git protocols
Browse files Browse the repository at this point in the history
The github CI bots is not happy about the git protocols. Let's try to
use https protocols still.
  • Loading branch information
ChuanqiXu9 committed Mar 14, 2024
1 parent 7690a05 commit 5dd2398
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/FindGTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ else()
message(STATUS "Not all GTest variable got specified: "
"'GMOCK_INCLUDE_DIR', 'GTEST_INCLUDE_DIR', "
"'GTEST_LIBRARIES', 'GMOCK_LIBRARIES'")
message(STATUS "fetch GTest from git@github.com:google/googletest.git")
message(STATUS "fetch GTest from https://github.com/google/googletest.git")
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY git@github.com:google/googletest.git
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
GIT_SHALLOW ON
)

set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
set(BUILD_GMOCK ON CACHE BOOL "" FORCE)
set(BUILD_GTEST ON CACHE BOOL "" FORCE)
Expand Down

0 comments on commit 5dd2398

Please sign in to comment.