2023-06-08 00:40:40 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-10-19 06:31:30 +08:00
|
|
|
index c329f9b..785ca3c 100644
|
2023-06-08 00:40:40 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-10-19 06:31:30 +08:00
|
|
|
@@ -180,7 +180,7 @@ set(CMAKE_REQUIRED_LIBRARIES ${HIREDIS_FEATURE_TEST_LIB})
|
2023-06-08 00:40:40 +08:00
|
|
|
CHECK_SYMBOL_EXISTS(redisEnableKeepAliveWithInterval ${HIREDIS_FEATURE_TEST_HEADER} REDIS_PLUS_PLUS_HAS_redisEnableKeepAliveWithInterval)
|
|
|
|
|
2024-10-19 06:31:30 +08:00
|
|
|
set(REDIS_PLUS_PLUS_GENERATED_HEADER_DIR ${CMAKE_CURRENT_BINARY_DIR}/${REDIS_PLUS_PLUS_HEADER_DIR})
|
|
|
|
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hiredis_features.h.in ${CMAKE_CURRENT_BINARY_DIR}/${REDIS_PLUS_PLUS_SOURCE_DIR}/hiredis_features.h)
|
|
|
|
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/hiredis_features.h.in" "${CMAKE_CURRENT_BINARY_DIR}/${REDIS_PLUS_PLUS_SOURCE_DIR}/hiredis_features.h")
|
2023-06-08 00:40:40 +08:00
|
|
|
|
|
|
|
# Restore CMAKE_REQUIRED_LIBRARIES
|
|
|
|
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_BACK})
|