equal
deleted
inserted
replaced
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 |
14 # I hate that they define "WIN32" ... we're about to move to Win64...I hope! |
19 # I hate that they define "WIN32" ... we're about to move to Win64...I hope! |
15 if(WIN32 AND NOT WINDOWS) |
20 if(WIN32 AND NOT WINDOWS) |
16 set(WINDOWS TRUE) |
21 set(WINDOWS TRUE) |
17 endif(WIN32 AND NOT WINDOWS) |
22 endif(WIN32 AND NOT WINDOWS) |
18 |
23 |
31 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
36 endif(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
32 |
37 |
33 include(CheckIncludeFile) |
38 include(CheckIncludeFile) |
34 include(CheckLibraryExists) |
39 include(CheckLibraryExists) |
35 include(CheckCSourceCompiles) |
40 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 |
41 |
46 |
42 |
47 if(MACOSX) |
43 if(MACOSX) |
48 # Fallback to older OS X on PowerPC to support wider range of systems... |
44 # Fallback to older OS X on PowerPC to support wider range of systems... |
49 if(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |
45 if(CMAKE_OSX_ARCHITECTURES MATCHES ppc) |