From 3c7a48689832561355a8038eb3059a6d68356bc7 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Mon, 11 Mar 2013 22:05:49 +0100 Subject: [PATCH] Mac: detect x64 macs This is needed so WITH_SSE2 is turned on automatically. --- cmake/ConfigOptions.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake index 0408e79f2..2c14142e9 100644 --- a/cmake/ConfigOptions.cmake +++ b/cmake/ConfigOptions.cmake @@ -3,6 +3,9 @@ if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|x86") AND (CMAKE_SIZEOF_VOID_P EQU set(TARGET_ARCH "x86") elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 8)) set(TARGET_ARCH "x64") +elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "i386") AND (CMAKE_SIZEOF_VOID_P EQUAL 8) AND (APPLE)) + # Mac is weird like that. + set(TARGET_ARCH "x64") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm*") set(TARGET_ARCH "ARM") endif()