misc/libphysfs/CMakeLists.txt
branch0.9.19
changeset 9117 1bed4aee19e0
parent 9110 3883b5dc600c
child 9126 63bf1f4f40f8
child 9127 e350500c4edb
child 9158 b4d8baf4669a
equal deleted inserted replaced
9116:1b7dcf24037b 9117:1bed4aee19e0
     9 set(PHYSFS_VERSION 2.1.0)
     9 set(PHYSFS_VERSION 2.1.0)
    10 
    10 
    11 # Increment this if/when we break backwards compatibility.
    11 # Increment this if/when we break backwards compatibility.
    12 set(PHYSFS_SOVERSION 1)
    12 set(PHYSFS_SOVERSION 1)
    13 
    13 
    14 # 32bit platforms won't link unless this is set
       
    15 if(CMAKE_SIZEOF_VOID_P LESS 8)
       
    16     add_definitions(-DPHYSFS_NO_64BIT_SUPPORT=1)
       
    17 endif(CMAKE_SIZEOF_VOID_P LESS 8)
       
    18 
       
    19 # I hate that they define "WIN32" ... we're about to move to Win64...I hope!
    14 # I hate that they define "WIN32" ... we're about to move to Win64...I hope!
    20 if(WIN32 AND NOT WINDOWS)
    15 if(WIN32 AND NOT WINDOWS)
    21     set(WINDOWS TRUE)
    16     set(WINDOWS TRUE)
    22 endif(WIN32 AND NOT WINDOWS)
    17 endif(WIN32 AND NOT WINDOWS)
    23 
    18 
    36 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
    31 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
    37 
    32 
    38 include(CheckIncludeFile)
    33 include(CheckIncludeFile)
    39 include(CheckLibraryExists)
    34 include(CheckLibraryExists)
    40 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)
    41 
    45 
    42 
    46 
    43 if(MACOSX)
    47 if(MACOSX)
    44     # 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...
    45     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
    49     if(CMAKE_OSX_ARCHITECTURES MATCHES ppc)