On 08/01/2012 03:48 AM, D. Barbier wrote: > I use ${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES} to remove system > paths from RPATH.
FYI, CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES is not documented by CMake as a publicly available value. It is an internal implementation detail, though I doubt it is going away. > It worked fine, but after migrating this package to multiarch, RPATH > now contains > /usr/lib/<triplet> because this directory is not listed in > CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES. > Can you please add it? CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES contains hard-coded guesses on specific platforms for typical system directories. It pre-dates CMake's modern functionality that detects the real implicit library search path used by the compiler front-end. Those results are stored in CMAKE_${lang}_IMPLICIT_LINK_DIRECTORIES where "${lang}" is "C", "CXX", "Fortran", etc. for each language that has been enabled. This one is publicly documented: http://www.cmake.org/cmake/help/v2.8.8/cmake.html#variable:CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES Use that instead. It first appeared in CMake 2.8.0. -Brad -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org