Re: [CMake] absolute rpath

2008-03-05 Thread Alexander Neundorf
On Wednesday 05 March 2008, Jörg Becker wrote: > On Tuesday 04 March 2008 22:10, Alexander Neundorf wrote: > > Indeed, with cmake 2.4.6 and 2.4.8 "." is expanded to the current dir, > > with cmake cvs HEAD it stays "." in the executable (is this then actually > > relative to the location of the exe

Re: [CMake] absolute rpath

2008-03-05 Thread Jörg Becker
On Tuesday 04 March 2008 22:10, Alexander Neundorf wrote: > Indeed, with cmake 2.4.6 and 2.4.8 "." is expanded to the current dir, with > cmake cvs HEAD it stays "." in the executable (is this then actually > relative to the location of the executable or to the current working > directory ?) It is

Re: [CMake] absolute rpath

2008-03-04 Thread Alexander Neundorf
On Friday 29 February 2008, Alexander Neundorf wrote: > On Wednesday 27 February 2008, Jörg Becker wrote: > > On Monday, 25. February 2008 20:44:13 Alexander Neundorf wrote: > > > > > Use: > > > > > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > > > > > > > > This doesn't work, too. Th

Re: [CMake] absolute rpath

2008-02-29 Thread Andreas Schneider
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 sh

Re: [CMake] absolute rpath

2008-02-29 Thread Jörg Becker
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

Re: [CMake] absolute rpath

2008-02-28 Thread Alexander Neundorf
On Wednesday 27 February 2008, Jörg Becker wrote: > On Monday, 25. February 2008 20:44:13 Alexander Neundorf wrote: > > > > Use: > > > > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > > > > > > This doesn't work, too. The problem may be, that I don't understand the > > > path expansion

Re: [CMake] absolute rpath

2008-02-27 Thread Jörg Becker
On Monday, 25. February 2008 20:44:13 Alexander Neundorf wrote: > > > Use: > > > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > > > > This doesn't work, too. The problem may be, that I don't understand the > > path expansion in cmake (or it is buggy). I tried the following things > > (

Re: [CMake] absolute rpath

2008-02-25 Thread Alexander Neundorf
On Friday 22 February 2008, Jörg Becker wrote: > On Wednesday, 20. February 2008 19:01:55 Alexander Neundorf wrote: > > Use: > > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > > This doesn't work, too. The problem may be, that I don't understand the > path expansion in cmake (or it is

Re: [CMake] absolute rpath

2008-02-22 Thread Jörg Becker
On Wednesday, 20. February 2008 19:01:55 Alexander Neundorf wrote: > Use: > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > This doesn't work, too. The problem may be, that I don't understand the path expansion in cmake (or it is buggy). I tried the following things (with set_target_p

Re: [CMake] absolute rpath

2008-02-21 Thread Alexander Neundorf
On Thursday 21 February 2008, Jörg Becker wrote: > On Wednesday, 20. February 2008 19:08:27 Hendrik Sattler wrote: > > Windows searches in '.' for DLLs by default. You don't have to do > > anything to achieve that. > > Yes and windows has no rpath. Perhaps I wasn't clear enough. I want (more > exac

Re: [CMake] absolute rpath

2008-02-21 Thread Jörg Becker
On Wednesday, 20. February 2008 19:08:27 Hendrik Sattler wrote: > Windows searches in '.' for DLLs by default. You don't have to do anything > to achieve that. Yes and windows has no rpath. Perhaps I wasn't clear enough. I want (more exactly: have) to have the windows behavior on linux. Which mea

Re: [CMake] absolute rpath

2008-02-20 Thread Hendrik Sattler
Am Mittwoch 20 Februar 2008 schrieb Alexander Neundorf: > On Wednesday 20 February 2008, Jörg Becker wrote: > > Hi, > > ... > > > I used make and automake. Both allowed me to set relative rpaths. I > > really want to leave the automake hell and use cmake, but I have to use > > 'rpath .'. > > Use: >

Re: [CMake] absolute rpath

2008-02-20 Thread Alexander Neundorf
On Wednesday 20 February 2008, Jörg Becker wrote: > Hi, ... > I used make and automake. Both allowed me to set relative rpaths. I really > want to leave the automake hell and use cmake, but I have to use 'rpath .'. Use: set_target_properties(hello PROPERTIES INSTALL_RPATH . ) (I think usually th

[CMake] absolute rpath

2008-02-20 Thread Jörg Becker
Hi, I'm wondering if there is a possibility to set relative rpaths with cmake. For our windows people I have to deliver everything with rpath '.', so they can copy all shared objects into the bin directory and everything works (like on windows) without changing any path or environment variable.