mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:59:06 +08:00
[cpp-redis] Fix ‘sleep_for’ is not a member of ‘std::this_thread’ (#23762)
* Apply patch: ‘sleep_for’ is not a member of ‘std::this_thread’ * Run with `./vcpkg x-add-version --all` * update version-string * update version * Replace deprecated methods * Add neccesary dependencies Add missing license field according to original repo's license * Run with `./vcpkg x-add-version --all` * Bump port version Run with `./vcpkg x-add-version --all` * update version * delets git-tree * update git tree * update vcpkg.json * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
parent
c11ee6b3a7
commit
ea5c1a6e5d
12
ports/cpp-redis/fix-sleep_for.patch
Normal file
12
ports/cpp-redis/fix-sleep_for.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/sources/core/client.cpp b/sources/core/client.cpp
|
||||
index 7ea20e2..c5d2c40 100644
|
||||
--- a/sources/core/client.cpp
|
||||
+++ b/sources/core/client.cpp
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <cpp_redis/core/client.hpp>
|
||||
#include <cpp_redis/misc/error.hpp>
|
||||
#include <cpp_redis/misc/macro.hpp>
|
||||
+#include <thread>
|
||||
|
||||
namespace cpp_redis {
|
||||
|
@ -6,6 +6,8 @@ vcpkg_from_github(
|
||||
REF 4.3.1
|
||||
SHA512 abf372542c53f37f504b3211b840b100d07a8f4b2e7f5584cc7550ab16ed617838e2df79064374c7a409458d8567f4834686318ea3a40249c767e36c744c7a47
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
"fix-sleep_for.patch"
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/tacopie/CMakeLists.txt DESTINATION ${SOURCE_PATH}/tacopie)
|
||||
@ -22,14 +24,13 @@ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAM
|
||||
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DMSVC_RUNTIME_LIBRARY_CONFIG=${MSVC_RUNTIME_LIBRARY_CONFIG}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
|
@ -1,10 +1,19 @@
|
||||
{
|
||||
"name": "cpp-redis",
|
||||
"version-string": "4.3.1",
|
||||
"port-version": 4,
|
||||
"version": "4.3.1",
|
||||
"port-version": 5,
|
||||
"description": "cpp-redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.",
|
||||
"homepage": "https://github.com/cpp-redis/cpp_redis",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"tacopie"
|
||||
"tacopie",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1562,7 +1562,7 @@
|
||||
},
|
||||
"cpp-redis": {
|
||||
"baseline": "4.3.1",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"cpp-taskflow": {
|
||||
"baseline": "2.6.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9714d8cf0b5557d4362f54f0906295b10a154832",
|
||||
"version": "4.3.1",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "5ba5958862c17ab2f3943b0134b2ad756ae73613",
|
||||
"version-string": "4.3.1",
|
||||
|
Loading…
Reference in New Issue
Block a user