aboutsummaryrefslogtreecommitdiff
path: root/ports/upb/fix-uwp.patch
blob: 91c45b416c4f67cce05b0f445b3fd071e9681eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 577000a..759e35b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,10 @@ elseif(UNIX)
   set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--build-id")
 endif()
 
+if (MSVC)
+  add_compile_options(/wd4146 -D_CRT_SECURE_NO_WARNINGS)
+endif()
+
 enable_testing()
 add_library(descriptor_upbproto INTERFACE)
 add_library(upb