Re: [CMake] ctest - how to set environment

2008-02-21 Thread David Cole
On 2/21/08, Jörg Becker [EMAIL PROTECTED] wrote: Until this will be implemented, I think about David's and Bill's suggestions for a workaround. I would go with Bill's suggestion actually. That will make it automatic for your developers and they will not have to set the environment

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 with

Re: [CMake] ctest - how to set environment

2008-02-20 Thread Bill Lorensen
If you use ctest scripts (http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest ) like this one from vtk: http://www.vtk.org/Testing/Sites/hythloth.kitware/Linux-gcc41/20080220-0300-Nightly/Notes.html You can set the CTEST_ENVIRONMENT as it does: # set any extra envionment variables here SET

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

Re: [CMake] ctest - how to set environment

2008-02-20 Thread David Cole
You could detect that your desired env vars are empty in your CMakeLists.txtand have CMake emit an error. IF($ENV{my_env_var} STREQUAL ) MESSAGE(FATAL_ERROR error: required env var not set - please set my_env_var in your environment before running cmake/make/make test) ENDIF($ENV{my_env_var}

Re: [CMake] ctest - how to set environment

2008-02-20 Thread Bill Hoffman
David Cole wrote: 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 means write a 'CMakeList.txt' once, run 'cmake' once and be able to run

RE: [CMake] ctest - how to set environment

2008-02-20 Thread Ken Martin
: cmake@cmake.org Subject: Re: [CMake] ctest - how to set environment David Cole wrote: 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