Skip to content

Commit

Permalink
Expose -DBUILD_WITHOUT_64BIT_OFFSET
Browse files Browse the repository at this point in the history
to allow building for 32bit Android.
  • Loading branch information
m-kuhn committed Jun 20, 2022
1 parent 8ad5a79 commit 551b67b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions port/CMakeLists.txt
Expand Up @@ -136,6 +136,10 @@ if (WIN32)
target_sources(cpl PRIVATE cpl_vsil_win32.cpp)
else ()
target_sources(cpl PRIVATE cpl_vsil_unix_stdio_64.cpp)
set(BUILD_WITHOUT_64BIT_OFFSET OFF CACHE BOOL "Build GDAL without > 4GB file support. If file API does not seem to support 64-bit offset.")
if(BUILD_WITHOUT_64BIT_OFFSET)
target_compile_definitions(cpl PRIVATE -DBUILD_WITHOUT_64BIT_OFFSET)
endif()
endif ()

if (HAVE_SSSE3_AT_COMPILE_TIME)
Expand Down

0 comments on commit 551b67b

Please sign in to comment.