Open pvanek opened 13 years ago
Thanks for the info. Actually, in ArchLinux (and maybe some more distros, I don't know) 64bit libs are in lib/ and 32bit are in lib32/, so the LIB_SUFFIX macro whould be then slightly more complicated, if it is meant to be automatic and not set explicitly via -DLIB_SUFFIX= ...
I'll take a look at some buildscripts about how it is done for example with TOra on archlinux and try to fix that appropriately.
ok, good to know about arch - so maybe only some option to allow to specify lib location should be fine - packagers can set it in spec/ebuild/whatever themself...
Use LIB_SUFFIX for library installation dir.
Closed by db27c54295ef8e2814682148e30c05f7e2cd35ae
It would be good to use autodetection script from Kompas here as well. It tries to autodetect the suffix from filesystem hierarchy, so it can cause problems when crosscompiling. Tested on OBS with both RPM and DEB-based distributions.
https://github.com/mosra/kompas-core/blob/master/modules/KompasLibSuffix.cmake
your libs are installed into /usr/lib directory. Unfortunately Linux LSB expects it in lib64 on 64bit systems. Please use LIB_SUFFIX (pretty standard in cmake workd) variable and/or additional script which should fix it:
https://tora.svn.sourceforge.net/svnroot/tora/trunk/tora/cmake/modules/LibSuffix.cmake
you can use install into CMAKE_INSTALL_PREFIX/lib${LIB_SUFFIX} ...