[CMake] Meaning of CTEST_ENVIRONMENT

NoRulez norulez at me.com
Fri Jun 1 11:13:14 EDT 2012


Hello,

in an example i saw that CTEST_ENVIRONMENT is used to set specific paths.
I tried the same in my CTestScript, but this doesn't work. Can anybody explain me why variant 1 is working and variant 2 is not?

1.Variant:
set(ENV{QTDIR} "C:\\Qt")
set(ENV{PATH} "$ENV{QTDIR};$ENV{QTDIR}\\bin;$ENV{PATH}")

2.Variant:
set(CTEST_ENVIRONMENT "QTDIR=C:\\Qt"
                      "PATH=%QTDIR%\;%QTDIR%\\bin\;%PATH%"
)

Thanks in advance

Best Regards
NoRulez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120601/7f001921/attachment.htm>


More information about the CMake mailing list