CMakeLists.txt
changeset 801 a6d25b52f2c7
parent 799 7012c0e130d0
child 802 d04103af68a5
--- 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.