Thanks, but I do not think this is what I want. set($ENV{VAR} "some_data")
in a cmake-script will set an enviroment variable AND delete it when the
script terminates. Is this not true when using -P? Do I actually need an
execute_process-command (or anything else) in my script that will set the
environment variable?2009/3/29 Philip Lowman <[email protected]> > On Sun, Mar 29, 2009 at 9:04 AM, Carlson Daniel < > [email protected]> wrote: > >> Hello and sorry for my late response! >> >> I can not get this to work. When i execute the command COMMAND >> ${CMAKE_COMMAND} -E ${template.cmake} >> I get an error saying something like: > > > I believe there was a minor typo in the post. The flag you probably want > is "-P" which is "process script mode". > > http://www.cmake.org/cmake/help/cmake2.6docs.html#section_Usage > > -- > Philip Lowman >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
