[cmake-developers] Introduce 'Unix Ninja' generator
Daniel Levin
dendy.ua at gmail.com
Tue Jan 20 12:26:59 EST 2015
As far as I understand this 'env' is not a standard key in Ninja, right?
That would be actually great to let CMake define environment variables in
rules.
Does CMake support that already?
What about Makefile compatibility, is it possible to define env variables
per rule in Makefiles?
On Tue, Jan 20, 2015 at 12:00 PM, Ben Boeckel <ben.boeckel at kitware.com>
wrote:
> On Tue, Jan 20, 2015 at 10:42:47 -0500, Daniel Levin wrote:
> > This wrapper script cannot be common, because for each kind of build env
> > variable set will be different. So it need to be created at CMake
> > generation time saving current QNX* env variables into this wrapper
> script.
> > So next time you can open clean shell and run 'make' or 'ninja' and it
> will
> > properly use environment variables defined previously at generation
> stage.
>
> What if Ninja itself gained support for 'env =' on rules for Ninja to
> set environment variables for the rule and QNX-on-Windows set CMake
> variables which filled this in appropriately?
>
> --Ben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150120/1166b14e/attachment.html>
More information about the cmake-developers
mailing list