aboutsummaryrefslogtreecommitdiff
path: root/ports/avcpp/0002-av_init_packet_deprecation.patch
blob: a243b0dfef118344304dfef2adad9e6809a7f435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5fed05..7875b91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,6 +24,11 @@ set (AVCPP_WARNING_OPTIONS
      $<$<CXX_COMPILER_ID:MSVC>:
        /W4>)
 
+# fixes vcpkg uwp failures due to /sdl
+if(MSVC)
+    add_compile_options(/wd4996)
+endif()
+
 # -pthread sets also some useful compile-time flags
 set(THREADS_PREFER_PTHREAD_FLAG ON)
 find_package(Threads)