[CMake] Setting Environment Variables on Windows (UNCLASSIFIED)
Bill Hoffman
bill.hoffman at kitware.com
Thu Jan 7 13:57:07 EST 2010
Ryan Pavlik wrote:
> Hello -
>
> This might help - from http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest
>
> # set any extra environment variables to use during the execution of the script here:
>
> SET (CTEST_ENVIRONMENT
> )
> \
You need quotes around the set:
Something like this works:
SET(TESTARG /path/to/whatever)
MESSAGE("TESTARG" ${TESTARG})
SET(ENV{PYTHONPATH} "$ENV{PYTHONPATH};TESTARG")
MESSAGE("PYTHONPATH:" $ENV{PYTHONPATH})
-Bill
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list