2020-07-07 04:23:44 +08:00
|
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2020-08-13 01:23:44 +08:00
|
|
|
index 62b7b33..8a4bd71 100644
|
2020-07-07 04:23:44 +08:00
|
|
|
--- a/lib/CMakeLists.txt
|
|
|
|
+++ b/lib/CMakeLists.txt
|
2022-01-20 01:15:16 +08:00
|
|
|
@@ -115,6 +115,10 @@ if(CURL_HAS_LTO)
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
+if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
+ set_property(TARGET ${LIB_NAME} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
if(WIN32)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
set_property(TARGET ${LIB_NAME} APPEND PROPERTY COMPILE_DEFINITIONS "_USRDLL")
|