Detect SSE building support with cmake, and moved setting the defines

out of the render mode cmake file into the main one. Should fix PPC
compile, and hopefully not break others.
This commit is contained in:
Brecht Van Lommel
2010-07-04 18:40:59 +00:00
parent effefdc9fa
commit 6c0f3d052e
3 changed files with 40 additions and 13 deletions

View File

@@ -54,11 +54,6 @@ IF(APPLE)
ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
ENDIF(APPLE)
IF(WITH_RAYOPTIMIZATION)
ADD_DEFINITIONS(-D__SSE__)
ADD_DEFINITIONS(-D__MMX__)
ENDIF(WITH_RAYOPTIMIZATION)
#TODO
#if env['OURPLATFORM']=='linux2':
# cflags='-pthread'