[cmake-developers] Using CMake generated ninja file as a subninja file

Nicolas Desprès nicolas.despres at gmail.com
Wed Jan 6 13:46:26 EST 2016


On Wed, Jan 6, 2016 at 7:35 PM, Ben Boeckel <ben.boeckel at kitware.com> wrote:

> On Wed, Jan 06, 2016 at 19:26:11 +0100, Nicolas Desprès wrote:
> > Is that variable already available or a name suggestion? I cannot find
> any
> > reference to it neither in the source nor in the documentation.
>
> It's a suggestion.
>

Ok, works for me too.


> > This is acceptable for me since I have a custom generator that would
> write
> > the top build.ninja containing "subninja sub/build.ninja". The end-user
> is
> > supposed to run ninja from the top directory not from the top/sub/
> > directory.
>
> It looks like subclassing cmLocalNinjaGenerator to override some
> path-related bits and it should work (though it has changed enough with
> cmState that I can't tell what exactly without doing more digging).
>
> The hardest problem is going to be with testing. Every generate step
> will also have to dump a build.ninja file out so that it can be properly
> tested.
>
> Brad is back later this week and may have other ideas too.
>
> I will try to have a patch working on a helloworld project first and I
will get back to you for the testing part. That would be the hardest part
indeed.

Thanks for your help.

-- 
Nicolas Desprès
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160106/67a4285f/attachment.html>


More information about the cmake-developers mailing list