Skip to content

Commit 9c8bacb

Browse files
committed
change deps to github
1 parent 27e5ed9 commit 9c8bacb

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

cmake/CPM.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if(NOT COMMAND cpm_message)
4242
endfunction()
4343
endif()
4444

45-
set(CURRENT_CPM_VERSION v0.40.3)
45+
set(CURRENT_CPM_VERSION 1.0.0-stable-version)
4646

4747
get_filename_component(CPM_CURRENT_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
4848
if(CPM_DIRECTORY)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CPMAddPackage(
22
NAME elog4cpp
3-
GIT_REPOSITORY https://gitee.com/acking-you/elog4cpp.git
3+
GIT_REPOSITORY https://github.com/acking-you/elog4cpp.git
44
GIT_TAG origin/master
55
GIT_SHALLOW TRUE
66
)

examples/chat/chat_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int main()
154154
{
155155
auto loop = netpoll::NewEventLoop(1);
156156
auto dialer = netpoll::tcp::Dialer::New({"127.0.0.1", 8080});
157-
#if __cplusplus >= 201703L
157+
#if __cplusplus >= 201703L || (_MSC_VER && _MSVC_LANG >= 201703L)
158158
dialer.bind<chat::client>();
159159
#else
160160
netpoll::tcp::Dialer::Register<chat::client>();

netpoll/util/any.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
// use std::any if cpp >= 17
4-
#if __cplusplus >= 201703L
4+
#if __cplusplus >= 201703L || (_MSC_VER && _MSVC_LANG >= 201703L)
55
#include <any>
66
namespace netpoll {
77
using Any = std::any;

tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
include(${PROJECT_SOURCE_DIR}/cmake/add_executable_test.cmake)
22
CPMAddPackage(
33
doctest
4-
GIT_REPOSITORY https://gitee.com/acking-you/doctest.git
5-
GIT_TAG v2.4.9
4+
GIT_REPOSITORY https://github.com/doctest/doctest.git
5+
GIT_TAG v2.4.11
66
GIT_SHALLOW TRUE
77
)
88

99
CPMAddPackage(
1010
nanobench
11-
GIT_REPOSITORY https://gitee.com/acking-you/nanobench.git
12-
GIT_TAG v4.1.0
11+
GIT_REPOSITORY https://github.com/martinus/nanobench.git
12+
GIT_TAG v4.3.11
1313
GIT_SHALLOW TRUE)
1414

1515
file(GLOB TEST_FILES

0 commit comments

Comments
 (0)