Skip to content
Snippets Groups Projects
Commit d9ca6351 authored by Weiyi Wang's avatar Weiyi Wang Committed by fearlessTobi
Browse files

cmake: mingw also needs _FILE_OFFSET_BITS=64

parent 2ff2732a
No related branches found
No related tags found
Loading
......@@ -170,7 +170,7 @@ endif()
# On modern Unixes, this is typically already the case. The lone exception is
# glibc, which may default to 32 bits. glibc allows this to be configured
# by setting _FILE_OFFSET_BITS.
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR MINGW)
add_definitions(-D_FILE_OFFSET_BITS=64)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment