> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
Behalf
> Of Brandon Van Every
> Sent: 15 November 2007 14:17
> To: [email protected]
> Subject: Re: [CMake] Setting environment variables for custom targets
> > It doesn't appear that,
> >
> >         SET(ENV{MYVAR} FOO)
> >        ADD_CUSTOM_TARGET(MYTARGET mycommand args),
> >
> > does the right thing, as the environment var MYVAR is only set
during
> > the cmake build, but not populated at build time and so not utilised
> by
> > the custom target.
> 
> Wrap your external command in a CMake script.
> 

How so?  Can you give me an example?

Joe
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to