cmake: always use /usr/lib/i386-linux-gnu when it exists

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5463 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2012-11-24 22:37:26 +00:00
parent ab207187bd
commit 3c3e0f7113
1 changed files with 5 additions and 6 deletions

View File

@ -62,18 +62,17 @@ if(CMAKE_SIZEOF_VOID_P MATCHES "8")
# Probably useless but it will not harm
SET_PROPERTY(GLOBAL PROPERTY COMPILE_DEFINITIONS "-m32")
# Force the search on 32-bits path.
if(EXISTS "/usr/lib32")
set(CMAKE_LIBRARY_ARCHITECTURE "../lib32")
endif()
# Debian/ubuntu drop /usr/lib32
if(EXISTS "/usr/lib/i386-linux-gnu")
set(CMAKE_LIBRARY_ARCHITECTURE "i386-linux-gnu")
endif()
endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
# Debian/ubuntu drop /usr/lib32 and move /usr/lib to /usr/lib/i386-linux-gnu
if(EXISTS "/usr/lib/i386-linux-gnu")
set(CMAKE_LIBRARY_ARCHITECTURE "i386-linux-gnu")
endif()
# * -fPIC option was removed for multiple reasons.
# - Code only supports the x86 architecture.