--- blender-2.66/build_files/cmake/macros.cmake 2013-05-08 18:22:09.369578697 -0600 +++ blender-2.66/build_files/cmake/macros.cmake 2013-05-08 18:16:32.457758937 -0600 @@ -389,28 +389,23 @@ endmacro() macro(TEST_SSE_SUPPORT - _sse_flags - _sse2_flags) + _sse_flags) include(CheckCSourceRuns) # message(STATUS "Detecting SSE support") if(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang")) set(${_sse_flags} "-msse") - set(${_sse2_flags} "-msse2") elseif(MSVC) set(${_sse_flags} "/arch:SSE") - set(${_sse2_flags} "/arch:SSE2") elseif(CMAKE_C_COMPILER_ID MATCHES "Intel") set(${_sse_flags} "") # icc defaults to -msse - set(${_sse2_flags} "-msse2") else() message(WARNING "SSE flags for this compiler: '${CMAKE_C_COMPILER_ID}' not known") set(${_sse_flags}) - set(${_sse2_flags}) endif() - set(CMAKE_REQUIRED_FLAGS "${${_sse_flags}} ${${_sse2_flags}}") + set(CMAKE_REQUIRED_FLAGS "${${_sse_flags}}") if(NOT DEFINED SUPPORT_SSE_BUILD) # result cached @@ -426,20 +421,6 @@ endif() endif() - if(NOT DEFINED SUPPORT_SSE2_BUILD) - # result cached - check_c_source_runs(" - #include - int main(void) { __m128d v = _mm_setzero_pd(); return 0; }" - SUPPORT_SSE2_BUILD) - - if(SUPPORT_SSE2_BUILD) - message(STATUS "SSE2 Support: detected.") - else() - message(STATUS "SSE2 Support: missing.") - endif() - endif() - unset(CMAKE_REQUIRED_FLAGS) endmacro()