[CMake] install and rpath question

Andreas Schneider mail at cynapses.org
Mon Apr 23 14:26:44 EDT 2007


Mathieu Malaterre wrote:
> Hello,
> 
>  I cannot figure out how to install a library so that the installed
> version use the install_rpath.
> 
> # By default rpath works in built tree:
> ADD_LIBRARY(foo SHARED foo.c)
> ADD_LIBRARY(bla SHARED bla.c)
> TARGET_LINK_LIBRARIES(bla foo)
> INSTALL(
>  TARGETS bla foo
>  LIBRARY DESTINATION lib
> )
> 
> SET_TARGET_PROPERTIES( bla
>  PROPERTIES INSTALL_RPATH ???
>  )
> 
> In the end the rpath should be working in the build tree and in the
> installed tree.

Normally you shouldn't use rpath, add a file to /etc/ld.so.conf.d/ with
the path in it.

> 
> thanks !
> 

	-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20070423/96c1e366/signature.pgp


More information about the CMake mailing list