fix for building with WITH_RAYOPTIMIZATION
authorCampbell Barton <ideasman42@gmail.com>
Thu, 1 Jul 2010 13:21:40 +0000 (13:21 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 1 Jul 2010 13:21:40 +0000 (13:21 +0000)
CMakeLists.txt
source/blender/render/CMakeLists.txt

index b4272d5f118d4e9768a9ae79b695259aef983f82..fedca9ba1ba8b42f44bf28bf20f47d328872e5b9 100644 (file)
@@ -304,6 +304,10 @@ IF(UNIX AND NOT APPLE)
 
        SET(PLATFORM_CFLAGS "-pipe -fPIC -funsigned-char -fno-strict-aliasing -Wno-char-subscripts")
 
+       IF(WITH_RAYOPTIMIZATION)
+               SET(PLATFORM_CFLAGS " -msse ${PLATFORM_CFLAGS}")
+       ENDIF(WITH_RAYOPTIMIZATION)
+
        SET(PLATFORM_LINKFLAGS "-pthread")
 
        # Better warnings
index 5dc89af563248f741b77c210f7b660ab4b3b2b23..89bdad7c6c7a691c9714f1755e6d7542da8a60dd 100644 (file)
@@ -56,6 +56,7 @@ ENDIF(APPLE)
 
 IF(WITH_RAYOPTIMIZATION)
        ADD_DEFINITIONS(-D__SSE__)
+       ADD_DEFINITIONS(-D__MMX__)
 ENDIF(WITH_RAYOPTIMIZATION)
 
 #TODO