set the minizip apple required compile definition to the bundled target

This commit is contained in:
jacker 2022-10-30 22:06:35 +02:00
parent 34fa4575c1
commit c2c6039603
No known key found for this signature in database
GPG key ID: CC846B58E6BDCFF2

View file

@ -895,6 +895,12 @@ if(BUNDLED_MINIZIP AND (BUILD_CLIENT OR BUILD_SERVER))
add_library(bundled_minizip STATIC ${MINIZIP_LIB_SRC} ${MINIZIP_LIB_HEADERS})
target_include_directories(bundled_minizip PUBLIC "${CMAKE_CURRENT_LIST_DIR}/minizip")
if(APPLE)
# The ioapi requires this since OSX already uses 64 fileapi (there is no fseek64 etc)
target_compile_definitions(bundled_minizip PUBLIC USE_FILE32API)
endif(APPLE)
if(BUNDLED_ZLIB)
target_link_libraries(bundled_minizip bundled_zlib)
endif(BUNDLED_ZLIB)