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

2016-01-06 Thread Nicolas Desprès
Hello, I would like to be able to use a build.ninja file generated by CMake as a subninja file of a super build.ninja file generated by a custom generator. This way I could include a CMake projects in a bigger one. Currently, I call ninja recursively to build the CMake sub-project. But this

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

2016-01-06 Thread Nicolas Desprès
On Wed, Jan 6, 2016 at 6:25 PM, Ben Boeckel wrote: > On Wed, Jan 06, 2016 at 11:14:32 +0100, Nicolas Desprès wrote: > > To enable this type of generation, the "top/" directory must be passed to > > CMake somehow. An environment variable or a CMake variable called > >

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

2016-01-06 Thread Ben Boeckel
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. > This is acceptable for me since I have a custom generator that would

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

2016-01-06 Thread Nicolas Desprès
On Wed, Jan 6, 2016 at 7:35 PM, Ben Boeckel 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. > >

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

2016-01-06 Thread Ben Boeckel
On Wed, Jan 06, 2016 at 11:14:32 +0100, Nicolas Desprès wrote: > To enable this type of generation, the "top/" directory must be passed to > CMake somehow. An environment variable or a CMake variable called > CMAKE_NINJA_TOP_BUILD_DIR would do the trick. I think CMAKE_NINJA_OUTPUT_PATH_PREFIX