disable warnings for zib.

pull/3012/head
Kim Kulling 2020-02-15 11:40:26 +01:00
parent 693aa5c1d6
commit b072614fad
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ endif()
check_include_file(unistd.h Z_HAVE_UNISTD_H)
if(MSVC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4131 /wd4127 /wd4244")
set(CMAKE_DEBUG_POSTFIX "d")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)