From 4dc2d71e34313370a77ec4a8d39a1e77ec5213e3 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 4 Mar 2014 14:45:50 -0600 Subject: [PATCH] OS X likes to be different. It reports the host processor type as i386 instead of x86 or x86_64 like a typical sane system. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b0d972160..4921fe996b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,7 @@ else() add_definitions(-D_ARCH_32=1) endif() -if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86") +if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_definitions(-msse2) set(_M_X86 1) add_definitions(-D_M_X86=1)