[CMake] Environment variable for a custom command

2008-08-15 Thread Gregory C. Sharp
I found this little tidbit in the FAQ: [E]nvironment variables SET in the CMakeLists.txt only take effect for cmake itself, so you cannot use this method to set an environment variable that a custom command might need. I would like to augment the path during a custom command. Is there a

Re: [CMake] Environment variable for a custom command

2008-08-15 Thread Bill Hoffman
Gregory C. Sharp wrote: I found this little tidbit in the FAQ: [E]nvironment variables SET in the CMakeLists.txt only take effect for cmake itself, so you cannot use this method to set an environment variable that a custom command might need. I would like to augment the path during a

Re: [CMake] Environment variable for a custom command

2008-08-15 Thread Gregory C. Sharp
Bill Hoffman wrote: Gregory C. Sharp wrote: I found this little tidbit in the FAQ: [E]nvironment variables SET in the CMakeLists.txt only take effect for cmake itself, so you cannot use this method to set an environment variable that a custom command might need. I would like to augment

Re: [CMake] Environment variable for a custom command

2008-08-15 Thread Bill Hoffman
Gregory C. Sharp wrote: Bill Hoffman wrote: Gregory C. Sharp wrote: I found this little tidbit in the FAQ: [E]nvironment variables SET in the CMakeLists.txt only take effect for cmake itself, so you cannot use this method to set an environment variable that a custom command might need.

Re: [CMake] Environment variable for a custom command

2008-08-15 Thread David Cole
Make that cmake -P (not cmake -S) -S is the run this script arg to ctest... On Fri, Aug 15, 2008 at 11:45 AM, Bill Hoffman [EMAIL PROTECTED]wrote: Gregory C. Sharp wrote: Bill Hoffman wrote: Gregory C. Sharp wrote: I found this little tidbit in the FAQ: [E]nvironment variables

Re: [CMake] Environment variable for a custom command

2008-08-15 Thread Gregory C. Sharp
David Cole wrote: add_custom_command(OUTPUT output COMMAND ${CMAKE_COMMAND} -S myscript.cmake) myscript.cmake: set(ENV{PATH} ...) execute_process() Make that cmake -P (not cmake -S) -S is the run this script arg to ctest... Works great. Thanks! -- Gregory C.