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