File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,15 @@ set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake")
6565set (targets_export_name "${PROJECT_NAME} Targets" )
6666set (namespace "${PROJECT_NAME} ::" )
6767
68+ # Workaround for minizip build failure on modern NDKs (r23+).
69+ # Define USE_FILE32API to force a fallback from the missing ftello()/fseeko()
70+ # to the standard ftell()/fseek(), resolving the compile error. This may
71+ # limit support for files > 2GB on 32-bit systems.
72+ if (ANDROID AND CMAKE_C_COMPILER_ID MATCHES "Clang" )
73+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_FILE32API" CACHE STRING "C compiler flags" FORCE)
74+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_FILE32API" CACHE STRING "C++ compiler flags" FORCE)
75+ endif ()
76+
6877option (USE_AES "enables building of aes library" ON )
6978if (USE_AES)
7079 set (AES_SRC
You can’t perform that action at this time.
0 commit comments