Update zlib to 1.2.12

This commit is contained in:
Miku AuahDark
2022-08-25 19:13:08 +08:00
parent 2f06b85a2c
commit 7fcddc790b
74 changed files with 12237 additions and 1733 deletions
+1 -7
View File
@@ -3,7 +3,7 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
project(zlib C)
set(VERSION "1.2.11")
set(VERSION "1.2.12")
option(ASM686 "Enable building i686 assembly implementation")
option(AMD64 "Enable building amd64 assembly implementation")
@@ -187,10 +187,6 @@ add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC
add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
set_target_properties(zlib PROPERTIES SOVERSION 1)
target_include_directories(zlib PUBLIC .)
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(zlibstatic PUBLIC .)
target_include_directories(zlibstatic PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
if(NOT CYGWIN)
# This property causes shared libraries on Linux to have the full version
@@ -234,8 +230,6 @@ endif()
# Example binaries
#============================================================================
return()
add_executable(example test/example.c)
target_link_libraries(example zlib)
add_test(example example)