X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=thirdparty%2Fzlib%2FCMakeLists.txt;h=3cf970ee552ff2331a97396106801856ee0770b2;hb=8fae49d8ccee46f43bb06f035dd5b3ea105ba3aa;hp=55423c8b59b5fe439f3d5e34aacf7fe13fada1d8;hpb=4726bfb50c95c3090e4c3bddf5981a4562f9f600;p=apitrace diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt index 55423c8..3cf970e 100644 --- a/thirdparty/zlib/CMakeLists.txt +++ b/thirdparty/zlib/CMakeLists.txt @@ -5,9 +5,11 @@ 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 +add_library (z_bundled STATIC EXCLUDE_FROM_ALL adler32.c compress.c crc32.c @@ -28,3 +30,9 @@ add_library (z_bundled STATIC set_target_properties (z_bundled PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}" ) + +install ( + FILES README + DESTINATION ${DOC_INSTALL_DIR} + RENAME LICENSE-zlib.txt +)