]> 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)
committerJia Tan <jiat0218@gmail.com>
Tue, 31 Oct 2023 10:44:59 +0000 (18:44 +0800)
commit36fabdbe67c8a8fbdc3ac695a91fc443a1328cc4
treeba20c834cc510c25e180ef0dd08a234996f92ddd
parent989c8c354cbd2d20fbae4a432a3e31f5bc1cb9bf
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]