From 380b83e9bd50270f76175b718245ab83879ef2b2 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Tue, 16 Oct 2018 13:23:07 -0400 Subject: [PATCH] cmake: mingw also needs _FILE_OFFSET_BITS=64 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08f6ce2fb..b0078e408 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()