vcpkg/ports/opencv4/0010-fix-uwp-tiff-imgcodecs.patch
Stefano Sinigardi 09019cbc9a
[OpenCV] fix protobuf references (#19770)
* [OpenCV] fix protobuf targets

* [OpenCV] fix port versions

* [OpenCV] fix references
2021-09-03 22:25:12 -07:00

14 lines
356 B
Diff

--- a/modules/imgcodecs/CMakeLists.txt
+++ b/modules/imgcodecs/CMakeLists.txt
@@ -9,6 +9,10 @@ ocv_add_module(imgcodecs opencv_imgproc WRAP java objc python)
ocv_clear_vars(GRFMT_LIBS)
+if(MSVC)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
+endif()
+
if(HAVE_WINRT_CX AND NOT WINRT)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /ZW")
endif()