[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cmake GNUInstallDirs question





On Sat, Sep 12, 2015 at 12:46 AM, Rebecca N. Palmer <rebecca_palmer@zoho.com> wrote:
It outputs "lib: lib". No arch triplet. Is this expected?
Yes; you probably want ${CMAKE_INSTALL_FULL_LIBDIR}.

http://www.cmake.org/cmake/help/v3.1/module/GNUInstallDirs.html
https://anonscm.debian.org/cgit/pkg-opencl/beignet.git/tree/debian/patches/Enable-multiarch.patch?id=a4be256b30625db8829a5d752dc71aa4eb61229b

Thanks for the idea, but I found a different resolution. $CMAKE_INSTALL_LIBDIR  returns "lib/$triplet" when install prefix is /usr. The other problem I was having in packaging was that the project() line was after the include(GNUInstallDirs) and it needed to be before.


Reply to: