2023-04-19 07:38:48 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-08-09 12:50:28 +08:00
|
|
|
index 1b5190b..763b49e 100644
|
2023-04-19 07:38:48 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-08-09 12:50:28 +08:00
|
|
|
@@ -315,6 +315,10 @@ target_link_libraries(datachannel-static PRIVATE Usrsctp::Usrsctp plog::plog)
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(datachannel PUBLIC ws2_32) # winsock2
|
|
|
|
target_link_libraries(datachannel-static PUBLIC ws2_32) # winsock2
|
|
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
+ target_compile_options(datachannel PRIVATE /wd4996)
|
|
|
|
+ target_compile_options(datachannel-static PRIVATE /wd4996)
|
|
|
|
+ endif()
|
2023-04-19 07:38:48 +08:00
|
|
|
endif()
|
|
|
|
|
2024-08-09 12:50:28 +08:00
|
|
|
if (NO_WEBSOCKET)
|