[cmake-developers] How to set environment variable for custom command.

2013-07-19 Thread Nicolas Desprès
Hi, In Unix shell we can do that: $ VAR=foo cmd in out This way the environment variable is only set in the environment of the process of the command and not the in current shell like when using the "export" built-in. I would like to be able to do the same for a custom command in CMake. Ideally

Re: [cmake-developers] How to set environment variable for custom command.

2013-07-19 Thread Nicolas Desprès
Sorry wrong ML :(. On Fri, Jul 19, 2013 at 4:36 PM, Nicolas Desprès wrote: > Hi, > > In Unix shell we can do that: > $ VAR=foo cmd in out > > This way the environment variable is only set in the environment of the > process of the command and not the in current shell like when using the > "expor

Re: [cmake-developers] How to set environment variable for custom command.

2013-07-19 Thread Brad King
On 07/19/2013 10:36 AM, Nicolas Desprès wrote: > Hi, > > In Unix shell we can do that: > $ VAR=foo cmd in out > > This way the environment variable is only set in the environment of the > process of the command and not the in current shell like when using the > "export" built-in. > > I would l

Re: [cmake-developers] How to set environment variable for custom command.

2013-07-19 Thread Matthew Woehlke
On 2013-07-19 10:36, Nicolas Desprès wrote: In Unix shell we can do that: $ VAR=foo cmd in out This way the environment variable is only set in the environment of the process of the command and not the in current shell like when using the "export" built-in. I would like to be able to do the sam

Re: [cmake-developers] How to set environment variable for custom command.

2013-07-19 Thread Alan W. Irwin
On 2013-07-19 12:35-0400 Matthew Woehlke wrote: On 2013-07-19 10:36, Nicolas Desprès wrote: In Unix shell we can do that: $ VAR=foo cmd in out This way the environment variable is only set in the environment of the process of the command and not the in current shell like when using the "export

Re: [cmake-developers] How to set environment variable for custom command.

2013-07-20 Thread Nicolas Desprès
On Fri, Jul 19, 2013 at 8:29 PM, Alan W. Irwin wrote: > On 2013-07-19 12:35-0400 Matthew Woehlke wrote: > > On 2013-07-19 10:36, Nicolas Desprès wrote: >> >>> In Unix shell we can do that: >>> $ VAR=foo cmd in out >>> >>> This way the environment variable is only set in the environment of the >>>