merged changes to revision 24446
[blender.git] / source / blender / render / CMakeLists.txt
index bc355f332640beab19ddb6b03fc1ec71ab97a6c8..236f5d7de7f52e61a939195b359e64ad2380fd69 100644 (file)
@@ -47,6 +47,13 @@ IF(WITH_QUICKTIME)
        ADD_DEFINITIONS(-DWITH_QUICKTIME)
 ENDIF(WITH_QUICKTIME)
 
+IF(APPLE)
+       IF((CMAKE_OSX_ARCHITECTURES MATCHES "i386") OR (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64"))
+               SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
+               SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
+       ENDIF((CMAKE_OSX_ARCHITECTURES MATCHES "i386") OR (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64"))
+ENDIF(APPLE)
+
 #TODO
 #if env['OURPLATFORM']=='linux2':
 #    cflags='-pthread'