misc/libphysfs/CMakeLists.txt
changeset 9188 ba9cca49a5e2
parent 9185 115e7daa4796
child 9192 a8a717cf4a66
equal deleted inserted replaced
9186:d87e2c7838fa 9188:ba9cca49a5e2
    31 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
    31 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
    32 
    32 
    33 include(CheckIncludeFile)
    33 include(CheckIncludeFile)
    34 include(CheckLibraryExists)
    34 include(CheckLibraryExists)
    35 include(CheckCSourceCompiles)
    35 include(CheckCSourceCompiles)
    36 
       
    37 
       
    38 # 32bit platforms won't link unless this is set
       
    39 # although Windows doesn't like it
       
    40 if(NOT WINDOWS)
       
    41     if(CMAKE_SIZEOF_VOID_P LESS 8)
       
    42         add_definitions(-DPHYSFS_NO_64BIT_SUPPORT=1)
       
    43     endif(CMAKE_SIZEOF_VOID_P LESS 8)
       
    44 endif(NOT WINDOWS)
       
    45 
    36 
    46 
    37 
    47 if(MACOSX)
    38 if(MACOSX)
    48     # Fallback to older OS X on PowerPC to support wider range of systems...
    39     # Fallback to older OS X on PowerPC to support wider range of systems...
    49     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    40     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)