We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c4bbc commit e8a57caCopy full SHA for e8a57ca
source/cmake/googletest.cmake.in
@@ -2,9 +2,15 @@ cmake_minimum_required(VERSION 2.8.2)
2
3
project(googletest-download NONE)
4
5
+if (USE_GITEE_GTEST)
6
+ set(GTEST_REPO_ADDRESS "https://gitee.com/mirrors/googletest.git")
7
+else ()
8
+ set(GTEST_REPO_ADDRESS "https://github.com/google/googletest.git")
9
+endif()
10
+
11
include(ExternalProject)
12
ExternalProject_Add(googletest
- GIT_REPOSITORY https://github.com/google/googletest.git
13
+ GIT_REPOSITORY ${GTEST_REPO_ADDRESS}
14
GIT_TAG main
15
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
16
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"
0 commit comments