equal
deleted
inserted
replaced
55 |
55 |
56 if (minimum_macosx LESS "10.4") |
56 if (minimum_macosx LESS "10.4") |
57 set(FATAL "Hedgewars is not supported for pre-10.4 systems") |
57 set(FATAL "Hedgewars is not supported for pre-10.4 systems") |
58 endif() |
58 endif() |
59 |
59 |
|
60 set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400") |
60 if(current_macosx_version MATCHES "10.6") |
61 if(current_macosx_version MATCHES "10.6") |
61 set(CMAKE_OSX_ARCHITECTURES "x86_64") |
62 set(CMAKE_OSX_ARCHITECTURES "x86_64") |
62 endif() |
63 endif() |
63 |
64 |
64 #create universal binaries only when it's time to bundle the application, also build server |
65 #create universal binaries only when it's time to bundle the application, also build server |
65 IF(BUNDLE) |
66 IF(BUNDLE) |
66 set(WITH_SERVER false) |
67 set(WITH_SERVER false) |
67 if(NOT minimum_macosx MATCHES "10.6") |
68 if(NOT minimum_macosx MATCHES "10.6") |
68 set(CMAKE_C_COMPILER "gcc-4.0") |
69 set(CMAKE_C_COMPILER "gcc-4.0") |
69 set(CMAKE_CXX_COMPILER "g++-4.0") |
70 set(CMAKE_CXX_COMPILER "g++-4.0") |
70 set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400") |
|
71 endif() |
71 endif() |
72 ENDIF() |
72 ENDIF() |
73 |
73 |
74 message(STATUS "Target system: Mac OS X ${minimum_macosx} ${CMAKE_OSX_ARCHITECTURES}") |
74 message(STATUS "Target system: Mac OS X ${minimum_macosx} ${CMAKE_OSX_ARCHITECTURES}") |
75 |
75 |