# HG changeset patch # User koda # Date 1370353866 -7200 # Node ID 1bed4aee19e0183876ef066fcf9f88120ba91f23 # Parent 1b7dcf24037bcf056e7cd06ef853809964837d66 apply raptor's fix on unix only diff -r 1b7dcf24037b -r 1bed4aee19e0 misc/libphysfs/CMakeLists.txt --- a/misc/libphysfs/CMakeLists.txt Tue Jun 04 15:41:40 2013 +0200 +++ b/misc/libphysfs/CMakeLists.txt Tue Jun 04 15:51:06 2013 +0200 @@ -11,11 +11,6 @@ # Increment this if/when we break backwards compatibility. set(PHYSFS_SOVERSION 1) -# 32bit platforms won't link unless this is set -if(CMAKE_SIZEOF_VOID_P LESS 8) - add_definitions(-DPHYSFS_NO_64BIT_SUPPORT=1) -endif(CMAKE_SIZEOF_VOID_P LESS 8) - # I hate that they define "WIN32" ... we're about to move to Win64...I hope! if(WIN32 AND NOT WINDOWS) set(WINDOWS TRUE) @@ -40,6 +35,15 @@ include(CheckCSourceCompiles) +# 32bit platforms won't link unless this is set +# although Windows doesn't like it +if(NOT WINDOWS) + if(CMAKE_SIZEOF_VOID_P LESS 8) + add_definitions(-DPHYSFS_NO_64BIT_SUPPORT=1) + endif(CMAKE_SIZEOF_VOID_P LESS 8) +endif(NOT WINDOWS) + + if(MACOSX) # Fallback to older OS X on PowerPC to support wider range of systems... if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)