mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-25 21:31:07 +00:00
Enable bzip2 decompression support
Build the minizip library with HAVE_BZIP2 and link to libbz2
This commit is contained in:
parent
4f13ad97b7
commit
cdbabeb179
1 changed files with 3 additions and 1 deletions
4
external/minizip/CMakeLists.txt
vendored
4
external/minizip/CMakeLists.txt
vendored
|
@ -25,13 +25,15 @@ if (APPLE)
|
|||
add_definitions("-DUSE_FILE32API")
|
||||
endif()
|
||||
|
||||
add_definitions("-DHAVE_BZIP2")
|
||||
|
||||
add_library(minizip
|
||||
${SOURCES}
|
||||
${HEADERS}
|
||||
)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(minizip z)
|
||||
target_link_libraries(minizip z bz2)
|
||||
else()
|
||||
target_link_libraries(minizip "${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib.lib")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue