mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2024-11-12 23:54:31 +00:00
set the minizip apple required compile definition to the bundled target
This commit is contained in:
parent
34fa4575c1
commit
c2c6039603
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue