vcpkg/ports/redis-plus-plus/fix-ws2-linking-windows.patch
JonLiu1993 610d218625
[redis-plus-plus] update to 1.2.3 (#18347)
* [redis-plus-plus] update to 1.2.3

* update version
2021-06-11 09:52:35 -07:00

13 lines
608 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 452cc0f..90932ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -148,6 +148,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})
set_target_properties(${SHARED_LIB} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
+ target_link_libraries(${SHARED_LIB} PUBLIC Ws2_32.lib)
else()
target_compile_options(${SHARED_LIB} PRIVATE "-Wall" "-W" "-Werror")
endif()