Mathieu Malaterre wrote:
<variable> can be an environment variable such as:
set( ENV{PATH} /home/martink )
in which case the environment variable will be set.
But if you want it to run at custom command time, you would have to do
it as a cmake script. Currently there is not a way to set environment
variables to be used during the running of custom commands without
creating a cmake script.
${CMAKE_COMMAND} -E myscript.cmake
myscript.cmake
set( ENV{PATH} /home/mystuff )
execute_process(...)
-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake