Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7519 for code/branches


Ignore:
Timestamp:
Oct 9, 2010, 5:32:31 PM (14 years ago)
Author:
rgrieder
Message:

Trying to get OS X to compile with 32 bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/CMakeLists.txt

    r7517 r7519  
    101101OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)
    102102
     103IF(APPLE)
     104  IF(NOT CMAKE_OSX_ARCHITECTURES)
     105    SET(CMAKE_OSX_ARCHITECTURES "i386")
     106  ENDIF()
     107 
     108  # 10.6 sets x86_64 as the default architecture.
     109  # Because Carbon isn't supported on 64-bit and we still need it, force the architectures to ppc and i386
     110  IF(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc64")
     111    STRING(REPLACE "x86_64" "" CMAKE_OSX_ARCHITECTURES ${CMAKE_OSX_ARCHITECTURES})
     112    STRING(REPLACE "ppc64" "" CMAKE_OSX_ARCHITECTURES ${CMAKE_OSX_ARCHITECTURES})
     113  ENDIF()
     114ENDIF()
     115
    103116########### Subfolders and Subscripts ###########
    104117
Note: See TracChangeset for help on using the changeset viewer.