[CMake] set environment variable

David Cole david.cole at kitware.com
Tue Oct 30 11:08:43 EDT 2007


Oops. I misread your reply (too fast)... Bill is right.

To set an env var for your executables, you'll need to write code that does
it yourself.


On 10/30/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> Mark Wyszomierski wrote:
> > Hi David,
> >
> > I'm new to linux, do you mean that setting the env var like that
> > through CMake will only affect my executables during run time- in
> > other words the env var is only set for my exes? That's fine and what
> > I need -
> >
>
> They will only be set during cmake time.  Cmake runs, creates makefiles,
> or projects, and then it is gone.  There is no way for it to set
> environment variables that last longer than the cmake run.
>
> -Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071030/a154de0f/attachment.html


More information about the CMake mailing list