mirror of
https://github.com/libretro/pcsx2.git
synced 2024-11-28 20:00:44 +00:00
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:
parent
ab207187bd
commit
3c3e0f7113
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user