]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Use -D_FILE_OFFSET_BITS=64 if (and only if) needed.
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Sep 2023 21:58:17 +0000 (00:58 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 26 Oct 2023 18:46:06 +0000 (21:46 +0300)
commit597f49b61475438a43a417236989b2acc968a686
tree3335bd67f83c2fb7cf41d93ec1b01b4a2129a66e
parent1bc548b8210366e44ba35b0b11577a8e328c1228
CMake: Use -D_FILE_OFFSET_BITS=64 if (and only if) needed.

A CMake option LARGE_FILE_SUPPORT is created if and only if
-D_FILE_OFFSET_BITS=64 affects sizeof(off_t).

This is needed on many 32-bit platforms and even with 64-bit builds
with MinGW-w64 to get support for files larger than 2 GiB.
CMakeLists.txt
cmake/tuklib_large_file_support.cmake [new file with mode: 0644]