Skip to content

Commit

Permalink
CMake: add a -DBUILD_WITHOUT_64BIT_OFFSET advanced option (#5941)
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 d465ed2 commit 6be8e18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions port/CMakeLists.txt
Expand Up @@ -136,6 +136,11 @@ 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.")
mark_as_advanced(BUILD_WITHOUT_64BIT_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 6be8e18

Please sign in to comment.