2020-10-27 15:53:49 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-06-12 00:52:35 +08:00
|
|
|
index 452cc0f..90932ce 100644
|
2020-10-27 15:53:49 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-06-12 00:52:35 +08:00
|
|
|
@@ -148,6 +148,7 @@ if(REDIS_PLUS_PLUS_BUILD_SHARED)
|
2020-10-27 15:53:49 +08:00
|
|
|
target_compile_definitions(${SHARED_LIB} PRIVATE NOMINMAX)
|
2021-06-12 00:52:35 +08:00
|
|
|
set_target_properties(${SHARED_LIB} PROPERTIES CXX_STANDARD ${REDIS_PLUS_PLUS_CXX_STANDARD})
|
2020-10-27 15:53:49 +08:00
|
|
|
set_target_properties(${SHARED_LIB} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
|
2021-06-12 00:52:35 +08:00
|
|
|
+ target_link_libraries(${SHARED_LIB} PUBLIC Ws2_32.lib)
|
|
|
|
else()
|
|
|
|
target_compile_options(${SHARED_LIB} PRIVATE "-Wall" "-W" "-Werror")
|
2020-10-27 15:53:49 +08:00
|
|
|
endif()
|