vcpkg/ports/redis-plus-plus/fix-ws2-linking-windows.patch
JonLiu1993 b9f003fb49
[redis-plus-plus] Update to 1.2.1 and support Windows (#14180)
* [redis-plus-plus] Update to 1.2.1 and support Windows

* [redis-plus-plus] Update to 1.2.1 and support Windows

* [redis-plus-plus] Update to 1.2.1 and support Windows
2020-10-27 00:53:49 -07:00

13 lines
588 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb3ff66..1309213 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,6 +77,7 @@ if (REDIS_PLUS_PLUS_BUILD_SHARED)
target_compile_definitions(${SHARED_LIB} PRIVATE NOMINMAX)
set_target_properties(${SHARED_LIB} PROPERTIES CXX_STANDARD ${REDIS_PLUS_PLUS_CXX_STANDARD} CXX_EXTENSIONS OFF)
set_target_properties(${SHARED_LIB} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
+ target_link_libraries(${SHARED_LIB} Ws2_32.lib)
endif()
target_link_libraries(${SHARED_LIB} ${HIREDIS_LIB})