[CMake] 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 I

Re: [CMake] How to set environment variable for custom command

2013-07-19 Thread Andreas Pakulat
Hi, On Fri, Jul 19, 2013 at 4:37 PM, Nicolas Desprès nicolas.desp...@gmail.comwrote: 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