[CMake] absolute rpath

Andreas Schneider mail at cynapses.org
Fri Feb 29 15:17:55 EST 2008


Jörg Becker wrote:
> On Friday, 29. February 2008 00:18:18 Alexander Neundorf wrote:
>>>> So you need your program to be executable anywhere in the file system,
>>>> and it also has to find its shared libs ?
>>>> Would setting PATH be a alternative ?
>>> Yes, setting PATH or LD_LIBRARY_PATH in a shell wrapper is an
>>> alternative.
>>>
>>>> You could create automatically shell
>>>> scripts which do that for you.
>>> Does automatically mean by CPack? The docu about CPack is quite short (Is
>> No.
>> Automatically means that you can write a macro which wraps add_executable()
>> and which also creates such a wrapper script.
>>
> I'll try it this way. Thanks a lot for your help!
> 

Hi,

I've written a bash script for wengophone which sets LD_LIBRARY_PATH.

http://hg.qutecom.org/qutecom-2.2/file/b9d00ba33b90/scripts/wengophone.sh

You can create symlinks to this script or execute it from everywhere. The
script will figure out in which path it is located :)

> Jörg
> 

	-- andreas

> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
> 

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20080229/1d068b8e/signature.pgp


More information about the CMake mailing list