From 0fa0d12ff00e311e330cc19cb5478be27ab67e06 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 1 Jul 2010 13:21:40 +0000 Subject: [PATCH] fix for building with WITH_RAYOPTIMIZATION --- CMakeLists.txt | 4 ++++ source/blender/render/CMakeLists.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4272d5f118..fedca9ba1ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/source/blender/render/CMakeLists.txt b/source/blender/render/CMakeLists.txt index 5dc89af5632..89bdad7c6c7 100644 --- a/source/blender/render/CMakeLists.txt +++ b/source/blender/render/CMakeLists.txt @@ -56,6 +56,7 @@ ENDIF(APPLE) IF(WITH_RAYOPTIMIZATION) ADD_DEFINITIONS(-D__SSE__) + ADD_DEFINITIONS(-D__MMX__) ENDIF(WITH_RAYOPTIMIZATION) #TODO -- 2.28.0