From aa0d65a2cbdf6e87017d08e7ec3b1df3629d5dcc Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 29 Sep 2013 14:27:25 -0400 Subject: [PATCH] Update CMakeLists.txt for x86 ffmpeg. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f964de24e..83427fa370 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1162,7 +1162,11 @@ if(USE_FFMPEG AND NOT DEFINED FFMPEG_BUILDDIR) elseif(MACOSX) set(PLATFORM_ARCH "macosx/x86_64") elseif(LINUX) - set(PLATFORM_ARCH "linux/x86_64") + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(PLATFORM_ARCH "linux/x86_64") + else() + set(PLATFORM_ARCH "linux/x86") + endif() endif() # Using static libraries if (DEFINED PLATFORM_ARCH)