[CMake] RPATH of imported targets

Philip Pfaffe philip.pfaffe at gmail.com
Wed Jun 1 12:26:07 EDT 2016


Hi Folks,

I'm linking a target against libraries from an imported package. The
resulting linker invocation then will link against the libs using the full
path, but it will not set the RPATH accordingly. How to I enable RPATH?

I suspect the reason is, that, in the package's Exports.cmake, it sets the
IMPORTED_LOCATION property. My cmake version is 3.2.2.

- Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160601/d7b2358c/attachment.html>


More information about the CMake mailing list