build: only set _FILE_OFFSET_BITS on non-Windows

mingw is confused - https://github.com/msys2/MINGW-packages/issues/10591
This commit is contained in:
Edward Thomson
2026-05-25 21:38:17 +01:00
parent 84806965a0
commit 7723452680

View File

@@ -82,12 +82,12 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif()
#
# Common settings across all projects, dependencies, etc. Always support
# 64 bit file operations, even 32 bit platforms.
#
# 64 bit file operations, even on 32 bit platforms.
add_definitions(-D_FILE_OFFSET_BITS=64)
if(NOT WIN32)
add_definitions(-D_FILE_OFFSET_BITS=64)
endif()
# Modules