From bd0a5fdbdf8852599bb9ce1f458e9f7271fc1fee Mon Sep 17 00:00:00 2001 From: sewenew Date: Wed, 24 May 2023 22:28:04 +0800 Subject: [PATCH] fix cmake to depend on the right hiredis_ssl_static lib --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d562c6..f634da5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,7 +190,7 @@ if(REDIS_PLUS_PLUS_BUILD_STATIC) if (TARGET hiredis::hiredis_ssl_static) # If SSL is not enabled, this line will have no effect - string(REPLACE "hiredis::hiredis_ssl" "hiredis::hiredis_ssl_static" REDIS_PLUS_PLUS_HIREDIS_LIBS_STATIC + string(REPLACE "hiredis::hiredis_static_ssl" "hiredis::hiredis_ssl_static" REDIS_PLUS_PLUS_HIREDIS_LIBS_STATIC "${REDIS_PLUS_PLUS_HIREDIS_LIBS_STATIC}") endif()