Skip to content

Commit 1843801

Browse files
committed
fix: redis_cpp c++17 error
1 parent c2c1874 commit 1843801

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

external/cpp_redis/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
if(NOT TARGET cpp_redis::cpp_redis)
1111
add_library(cpp_redis::cpp_redis INTERFACE IMPORTED GLOBAL)
12+
execute_process(
13+
COMMAND sed -i "s/^#include <cpp_redis\\/misc\\/macro.hpp>/#include <cpp_redis\\/misc\\/macro.hpp>\\n#include <thread>/" cpp_redis.git/sources/core/client.cpp
14+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
15+
)
1216

1317
# Try to find cpp_redis via PkgConfig.
1418
find_package(PkgConfig)

0 commit comments

Comments
 (0)