From d40721e5c0e1ebd54ee26fc956c4fd778c4f3695 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 22 Feb 2012 20:22:29 +0000 Subject: [PATCH] Suppressed MSVC warnings in zlib --- 3rdparty/zlib/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt index d7c81ad92d..5e88914754 100644 --- a/3rdparty/zlib/CMakeLists.txt +++ b/3rdparty/zlib/CMakeLists.txt @@ -10,11 +10,6 @@ include(CheckFunctionExists) include(CheckIncludeFile) include(CheckCSourceCompiles) -include(CheckTypeSize) -include(CheckFunctionExists) -include(CheckIncludeFile) -include(CheckCSourceCompiles) - # # Check to see if we have large file support # @@ -89,6 +84,10 @@ if(UNIX) endif() endif() +if(MSVC) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4013") +endif() + set_target_properties(${the_target} PROPERTIES OUTPUT_NAME "${the_target}" DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}" -- GitLab