2023-09-26 15:09:06 +08:00
|
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2023-10-12 02:10:58 +08:00
|
|
|
index 6f84919..b838245 100644
|
2023-09-26 15:09:06 +08:00
|
|
|
--- a/lib/CMakeLists.txt
|
|
|
|
+++ b/lib/CMakeLists.txt
|
2023-10-12 02:10:58 +08:00
|
|
|
@@ -162,6 +162,9 @@ if(BUILD_STATIC_LIBS)
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
|
|
endif()
|
|
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
+ set_property(TARGET ${LIB_STATIC} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
|
|
+ endif()
|
|
|
|
if(CMAKEVERSION AND CMAKESONAME)
|
|
|
|
set_target_properties(${LIB_STATIC} PROPERTIES
|
|
|
|
VERSION ${CMAKEVERSION} SOVERSION ${CMAKESONAME})
|
|
|
|
@@ -197,6 +200,9 @@ if(BUILD_SHARED_LIBS)
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
|
|
|
|
INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO TRUE)
|
|
|
|
endif()
|
|
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
+ set_property(TARGET ${LIB_SHARED} APPEND PROPERTY COMPILE_DEFINITIONS "_WINSOCK_DEPRECATED_NO_WARNINGS")
|
|
|
|
+ endif()
|
|
|
|
if(CMAKEVERSION AND CMAKESONAME)
|
|
|
|
set_target_properties(${LIB_SHARED} PROPERTIES
|
|
|
|
VERSION ${CMAKEVERSION} SOVERSION ${CMAKESONAME})
|