vcpkg/ports/libdatachannel/uwp-warnings.patch
2023-12-04 17:20:43 -08:00

15 lines
475 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c34d7fb..1bedd212 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,6 +446,9 @@ if(WARNINGS_AS_ERRORS)
endif()
endif()
+target_compile_options(datachannel PRIVATE /wd4996)
+target_compile_options(datachannel-static PRIVATE /wd4996)
+
if(DATACHANNEL_STATIC_LINKAGE)
set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1)
set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0)