修改cmake Fetchcontent三方库git地址
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user