From c15c96ac76f590dbea2e8adab2e1efffe99a19f1 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 14 Nov 2017 20:11:40 +0100 Subject: [PATCH] CMake: use define for D_FILE_OFFSET_BITS only for not-android systems. --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc3731bbb..79db04762 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,8 +183,11 @@ SET(ASSIMP_LIBRARY_SUFFIX "" CACHE STRING "Suffix to append to library names") IF( UNIX ) # Ensure that we do not run into issues like http://www.tcm.phy.cam.ac.uk/sw/inodes64.html on 32 bit linux - IF ( CMAKE_SIZEOF_VOID_P EQUAL 4) # only necessary for 32-bit linux - ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 ) + IF( ${OPERATING_SYSTEM} MATCHES "Android") + ELSE() + IF ( CMAKE_SIZEOF_VOID_P EQUAL 4) # only necessary for 32-bit linux + ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 ) + ENDIF() ENDIF() # Use GNUInstallDirs for Unix predefined directories