Fixes to CMakeLists.txt for Intel Mac.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 11 Mar 2007 08:33:15 +0000
changeset 801 a6d25b52f2c7
parent 800 ce3d59cd8430
child 802 d04103af68a5
Fixes to CMakeLists.txt for Intel Mac.
CMakeLists.txt
--- a/CMakeLists.txt	Sun Mar 11 08:11:36 2007 +0000
+++ b/CMakeLists.txt	Sun Mar 11 08:33:15 2007 +0000
@@ -26,10 +26,12 @@
 
 # Fallback to older Mac OS X on PowerPC to support a wider range of systems...
 IF(MACOSX)
+    ADD_DEFINITIONS(-fno-common)
     IF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
-        ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -fno-common)
-        SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} "-mmacosx-version-min=10.2 -framework Carbon -framework IOKit")
+        ADD_DEFINITIONS(-DMAC_OS_X_VERSION_MIN_REQUIRED=1020)
+        SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -mmacosx-version-min=10.2")
     ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES ppc)
+    SET(OTHER_LDFLAGS ${OTHER_LDFLAGS} " -framework Carbon -framework IOKit")
 ENDIF(MACOSX)
 
 # Add some gcc-specific command lines.