[Orxonox-commit 2816] r7519 - code/branches/ois_update
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat Oct 9 17:32:31 CEST 2010
Author: rgrieder
Date: 2010-10-09 17:32:31 +0200 (Sat, 09 Oct 2010)
New Revision: 7519
Modified:
code/branches/ois_update/CMakeLists.txt
Log:
Trying to get OS X to compile with 32 bits.
Modified: code/branches/ois_update/CMakeLists.txt
===================================================================
--- code/branches/ois_update/CMakeLists.txt 2010-10-09 15:28:36 UTC (rev 7518)
+++ code/branches/ois_update/CMakeLists.txt 2010-10-09 15:32:31 UTC (rev 7519)
@@ -100,6 +100,19 @@
# Enable expensive optimisations: use this for a binary release build
OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)
+IF(APPLE)
+ IF(NOT CMAKE_OSX_ARCHITECTURES)
+ SET(CMAKE_OSX_ARCHITECTURES "i386")
+ ENDIF()
+
+ # 10.6 sets x86_64 as the default architecture.
+ # Because Carbon isn't supported on 64-bit and we still need it, force the architectures to ppc and i386
+ IF(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc64")
+ STRING(REPLACE "x86_64" "" CMAKE_OSX_ARCHITECTURES ${CMAKE_OSX_ARCHITECTURES})
+ STRING(REPLACE "ppc64" "" CMAKE_OSX_ARCHITECTURES ${CMAKE_OSX_ARCHITECTURES})
+ ENDIF()
+ENDIF()
+
########### Subfolders and Subscripts ###########
# General build and compiler options and configurations
More information about the Orxonox-commit
mailing list