misc/libphysfs/CMakeLists.txt
branchwebgl
changeset 9127 e350500c4edb
parent 8833 c13ebed437cb
parent 9117 1bed4aee19e0
child 9160 fc46e75f6b72
equal deleted inserted replaced
8860:bde641cf53c8 9127:e350500c4edb
    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)
    36 
    45 
    37 
    46 
    38 if(MACOSX)
    47 if(MACOSX)
    39     # Fallback to older OS X on PowerPC to support wider range of systems...
    48     # Fallback to older OS X on PowerPC to support wider range of systems...
    40     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    49     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)