Try:
SET(ENV{MYVAR} myvalue)
(with no "$"...) The "$" causes substitution...
Xavier Delannoy wrote:
Hi all,
My tests require some environment variable
I try to set my env. var with:
SET($ENV{MYVAR} myvalue)
ADD_TEST(testname ${EXECUTABLE_OUTPUT_PATH}/test1)
but this doesn't work, all my tests failed because environement variable aren't
set ;(
So, how to set some environment variable before running test.
regards,
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake