From fe16ce9de3ffbebaf8e1382de47a169e538515b5 Mon Sep 17 00:00:00 2001 From: Jie Date: Wed, 21 Aug 2024 11:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cmake=20Fetchcontent=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=BA=93git=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake_modules/gtest.cmake | 4 +++- cmake_modules/spdlog.cmake | 3 ++- external/gtest | 2 +- external/spdlog | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cmake_modules/gtest.cmake b/cmake_modules/gtest.cmake index 3af9335..591f5e7 100644 --- a/cmake_modules/gtest.cmake +++ b/cmake_modules/gtest.cmake @@ -1,8 +1,10 @@ include(FetchContent) FetchContent_Declare( gtest - GIT_REPOSITORY https://gitee.com/mirrors/googletest.git + #GIT_REPOSITORY https://gitee.com/mirrors/googletest.git + GIT_REPOSITORY http://212.129.155.29:3000/gitMirror/googletest.git SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/gtest + GIT_TAG main ) FetchContent_MakeAvailable(gtest) diff --git a/cmake_modules/spdlog.cmake b/cmake_modules/spdlog.cmake index 32d2bf5..4138075 100644 --- a/cmake_modules/spdlog.cmake +++ b/cmake_modules/spdlog.cmake @@ -1,8 +1,9 @@ include(FetchContent) FetchContent_Declare( spdlog - GIT_REPOSITORY https://15209444885:9e4e79586fa1a4d39e6634de8881b19e@gitee.com/MaderHatter/spdlog.git + GIT_REPOSITORY http://212.129.155.29:3000/gitMirror/spdlog.git SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/spdlog + GIT_TAG main ) FetchContent_MakeAvailable(spdlog) diff --git a/external/gtest b/external/gtest index 1b18723..ff233bd 160000 --- a/external/gtest +++ b/external/gtest @@ -1 +1 @@ -Subproject commit 1b18723e874b256c1e39378c6774a90701d70f7a +Subproject commit ff233bdd4cac0a0bf6e5cd45bda3406814cb2796 diff --git a/external/spdlog b/external/spdlog index 00efbb6..5ebfc92 160000 --- a/external/spdlog +++ b/external/spdlog @@ -1 +1 @@ -Subproject commit 00efbb6d1dd30fcbd1a34a4c45352749550d38e7 +Subproject commit 5ebfc927306fd7ce551fa22244be801cf2b9fdd9