From 95cc998b8f73916da3e41b6f75bdf9f2828a67f1 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 11 Apr 2014 22:11:27 +0200 Subject: [PATCH] Attempt buildfix for x86 cmake linux --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8aeefd3044..8c4a0bd0dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,13 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (NOT MOBILE_DEVICE) set(USE_FFMPEG ON) endif() + if (NOT ARM) + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_M_X64") + else() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_M_IX86") + endif() + endif() endif() if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")