aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libdatachannel/uwp-warnings.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdatachannel/uwp-warnings.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libdatachannel/uwp-warnings.patch')
-rw-r--r--vcpkg/ports/libdatachannel/uwp-warnings.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/libdatachannel/uwp-warnings.patch b/vcpkg/ports/libdatachannel/uwp-warnings.patch
new file mode 100644
index 0000000..23d23dd
--- /dev/null
+++ b/vcpkg/ports/libdatachannel/uwp-warnings.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1b5190b..763b49e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -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()
+ endif()
+
+ if (NO_WEBSOCKET)