[CMake] set CTEST_ENVIRONMENT from within CMakeLists.txt?

Roland Bock rbock at eudoxos.de
Wed Sep 9 12:04:30 EDT 2009


Hi,

I would like to set some environment variables for ctest which are set 
when I call

make test

but not when I call

make foo


I have read that in a ctest script, I can do this by

SET (CTEST_ENVIRONMENT "foo=bar")

But the same line does not seem to have any effect when I put it in my 
CMakeLists.txt file. Any ideas? Or is this a 2.6 feature (I am still 
using cmake 2.4 on Ubuntu-8.04 64bit)?


Thanks and regards,

Roland



More information about the CMake mailing list