[CMake] ctest - how to set environment

2008-02-19 Thread Jörg Becker
Hi, I just started using CMake (2.4) and I'm very happy about the easy build setup. Encouraged by this quick success I tried to enable testing. But I cannot get working the tests correctly. My test executable needs an environment variable, which is not set in my standard session. As I understoo

Re: [CMake] ctest - how to set environment

2008-02-20 Thread Jörg Becker
On Tuesday, 19. February 2008 19:20:46 Philip Lowman wrote: > What you're looking for to the best of my knowledge doesn't exist in > CMake. I would file a feature request on the bugtracker for it. There > probably should be a way for declaring custom environment variables and > associating them w

[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.

Re: [CMake] ctest - how to set environment

2008-02-20 Thread Jörg Becker
On Wednesday, 20. February 2008 16:48:39 Bill Lorensen wrote: > You can set the CTEST_ENVIRONMENT as it does: As I wrote in my first mail, I'm failed using CTEST_ENVIRONMENT inside a CMakeLists.txt. I have not tried this in a special ctest script because I'm searching for lean solution. Which me

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] ctest - how to set environment

2008-02-21 Thread Jörg Becker
On Wednesday, 20. February 2008 21:05:22 Ken Martin wrote: > Really we need to implement Nice to hear. This would make testing much easier. Until this will be implemented, I think about David's and Bill's suggestions for a workaround. Many thanks to all for your help. Jörg __

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-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-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-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