[CMake] Export environment variables in generated Makefile

Taylor Braun-Jones taylor at braun-jones.org
Mon May 18 16:51:09 EDT 2015


On Mon, May 18, 2015 at 8:48 AM, Brad King <brad.king at kitware.com> wrote:

> On 05/17/2015 12:35 AM, Taylor Braun-Jones wrote:
> > CMake already has an ENVIRONMENT property for tests ...
> > symmetric feature would be to support an ENVIRONMENT property
> > for targets as well.
>
> We can provide it for tests because ctest directly runs the tests.
> There is no way to implement environment settings consistently
> across all generators when launching compiler tools.  The VS
> and Xcode IDE project files provide no way to do it in general.
> Our workflow for command-line builds has always been to have the
> necessary environment variables defined by the caller and not
> within the scope of CMake.
>

Okay, I had a hunch this might be the case. Thanks for clarifying.

Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150518/88dfe81c/attachment.html>


More information about the CMake mailing list