diff options
Diffstat (limited to 'vcpkg/ports/libdatachannel/uwp-warnings.patch')
| -rw-r--r-- | vcpkg/ports/libdatachannel/uwp-warnings.patch | 15 |
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) |