pcsx2/cmake
Miguel A. Colón Vélez bed7a4f92e Be really strict about dependencies.
The obtained binaries before and after this commit are identical (sha1sum)
when compiled in Debian/Ubuntu/Fedora/ArchLinux.
.
The linker will always pick the 32bit libraries the only thing this does is
make sure we have all the 32bit dependencies installed. Basically we avoid
detecting the 64bit libraries and telling the users the 32bit libraries were
found. We always link with 32bit libraries therefore this avoids having to
wait 5-10min to just be told -lXXX is missing.
.
The only thing really needed are
set(CMAKE_LIBRARY_ARCHITECTURE "../lib32")
set(CMAKE_LIBRARY_ARCHITECTURE ".")
.
which basically ensures we don't pick 64bit headers since
CMAKE_LIBRARY_ARCHITECTURE always gets tested first and for some reason
FindGTK2 test searches lib64 first then lib32/lib. These values are hardcoded.
Right now these arch specific headers are not used but can't say this will
always be true.
.
FIND_LIBRARY_USE_LIB64_PATHS is not needed for native builds and it's covered
by CMAKE_SYSTEM_IGNORE_PATH.
.
NOTE:
We filter out lib32 because multilib is not compatible with multiarch.
2015-01-03 14:51:04 +01:00
..
BuildParameters.cmake Be really strict about dependencies. 2015-01-03 14:51:04 +01:00
CheckLib.cmake cmake: add a new GTK3.0 option 2014-12-10 22:07:48 +01:00
FindCg.cmake Fix Cg find for Gentoo amd64 2014-05-18 22:51:09 +04:00
FindGlew.cmake cmake: sed /PROJECT_SOURCE_DIR/CMAKE_SOURCE_DIR/ 2014-03-30 16:36:02 +02:00
FindLibc.cmake cmake: fix some linking issue with gold linker (AFAIK only fedora use it for the moment) 2011-09-06 19:07:55 +00:00
Pcsx2Utils.cmake Use cmake variable "BIN_DIR" for binaries installation 2014-09-27 22:26:42 +04:00
SearchForStuff.cmake Fix build in Fedora and print a confimation of cross compilation. 2015-01-03 14:51:04 +01:00
SelectPcsx2Plugins.cmake cmake: regression to select SDL/GTK + 64bits fix 2014-12-22 19:31:32 +01:00
TargetArch.cmake Disable the use of multiple architectures in darwin. 2015-01-03 14:51:04 +01:00
Translation.cmake build.sh: allow to replace build directory by a symlink 2014-09-02 21:21:46 +02:00
darwin-compiler-i386-clang.cmake Include some rather simple CMAKE_TOOLCHAIN_FILE. 2015-01-03 14:51:04 +01:00
darwin-compiler-i386-generic.cmake Include some rather simple CMAKE_TOOLCHAIN_FILE. 2015-01-03 14:51:04 +01:00
linux-compiler-i386-multilib.cmake Be really strict about dependencies. 2015-01-03 14:51:04 +01:00