From 4e4974bfdcac916a48310318880a6ae16a6199ba Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Fri, 30 Aug 2013 15:25:28 -0600 Subject: [PATCH] Added note in CMakeLists.txt to specify why we're doing something on Windows platforms. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1611a15e6..e690cbe44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -699,8 +699,11 @@ CHECK_TYPE_SIZE("uchar" SIZEOF_UCHAR) CHECK_TYPE_SIZE("int64_t" SIZEOF_INT64_T) CHECK_TYPE_SIZE("uint64_t" SIZEOF_UINT64_T) +# On windows systems, we redefine off_t as __int64 +# to enable LFS. This is true on 32 and 64 bit system.s +# We must redefine SIZEOF_OFF_T to match. IF(MSVC AND SIZEOF___INT_64) - SET(SIZEOF_OFF_T SIZEOF___INT_64) + SET(SIZEOF_OFF_T ${SIZEOF___INT_64}) ENDIF() IF(SIZEOF_SSIZE_T)