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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user