Fix arch detection on x86.

This commit is contained in:
Ryan Houdek 2014-03-17 11:46:19 -05:00
parent d4c53eed01
commit 8ecb7524bc

View File

@ -132,9 +132,7 @@ else()
endif()
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i686" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i486" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i386" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86" OR
${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-msse2)
set(_M_X86 1)