DNN module 3rdparty VS 2015 warnings disabled

pull/406/head
Maksim Shabunin 10 years ago
parent d6e99d0b58
commit 3bd8f27f17
  1. 3
      modules/dnn/3rdparty/protobuf/CMakeLists.txt

@ -97,6 +97,7 @@ configure_file("cmake/config.h.in" "config.h")
if(MSVC)
add_definitions( -D_CRT_SECURE_NO_WARNINGS=1 )
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305 /wd4127 /wd4100 /wd4512 /wd4125 /wd4389 /wd4510 /wd4610 /wd4702)
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4456) # VS 2015
else()
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-deprecated -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wunused-parameter -Wunused-local-typedefs -Wsign-compare -Wsign-promo -Wundef)
endif()
@ -179,4 +180,4 @@ endif()
if(NOT BUILD_SHARED_LIBS)
ocv_install_target(libprotobuf EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
endif()
endif()

Loading…
Cancel
Save