X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=thirdparty%2Fzlib%2FCMakeLists.txt;h=b1e953d12bac221e6da86380bc4221c9129dd02a;hb=e7cb2b98575d5ff3801bd3527a648e0dbfdebdad;hp=1721574e450803f09928fcb79964f1088e71a942;hpb=f6548d1c7accc959ef53f8c08c1d7a71f94c7f53;p=apitrace diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt index 1721574..b1e953d 100644 --- a/thirdparty/zlib/CMakeLists.txt +++ b/thirdparty/zlib/CMakeLists.txt @@ -1,6 +1,13 @@ -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +include_directories (${CMAKE_CURRENT_SOURCE_DIR}) -add_definitions(-DNO_VIZ) +add_definitions (-DNO_VIZ) + +# adjust warnings +if (MSVC) + add_definitions (-wd4131) # uses old-style declarator +else () + add_definitions (-DHAVE_UNISTD_H) +endif () add_library (z_bundled STATIC adler32.c