Update-Installer/external/minizip/CMakeLists.txt
Robert Knight 4bcf379839 Fix minizip library compilation under OS X
Set the USE_FILE32API flag on Mac since fopen64()
and several related calls do not exist on that platform which
uses 64bit I/O in the standard file methods.

See http://stackoverflow.com/questions/4003479/how-to-enable-large-file-support-under-darwin
for details.
2011-08-22 14:19:07 +01:00

32 lines
415 B
CMake

project(minizip)
cmake_minimum_required(VERSION 2.6)
find_package(ZLIB REQUIRED)
set (SOURCES
ioapi.c
unzip.c
zip.c
)
set (HEADERS
ioapi.h
unzip.h
zip.h
)
if (APPLE)
# Mac OS X does not have fopen64()
# and several related functions as the standard fopen()
# calls are 64bit
add_definitions("-DUSE_FILE32API")
endif()
add_library(minizip
${SOURCES}
${HEADERS}
)
target_link_libraries(minizip z)