[cmake-developers] [PATCH 0/3] The CMake Ninja generator.

Bill Hoffman bill.hoffman at kitware.com
Tue Nov 15 13:20:39 EST 2011


On 11/15/2011 1:11 PM, Nicolas Desprès wrote:
>
>
> 2011/11/15 Bill Hoffman <bill.hoffman at kitware.com
> <mailto:bill.hoffman at kitware.com>>
>
>     On 11/15/2011 12:54 PM, Nicolas Desprès wrote:
>
>         Too much in my opinion. Specially the && operator of the shell.
>         Using
>         cmake -E is the first step. I am planning to suggest an evolution of
>         Ninja to fix this issue. Actually, it is the main issue which
>         stop me
>         while writing the beginning of this generator.
>         Cheers,
>
>
>     What type of evolution will Ninja need?   I suppose it could use
>     cmake scripts and exectue_process which can do && type things pretty
>     easy.
>
>
> Writting cmake script is one solution but since (at least when I started
> the Ninja Generator) Ninja uses $in as input file for the build
> statement it can be hard to pass to the cmake script.  I had a
> discussion on this email some month ago about how to pass argument to
> the cmake script. Maybe it will work using -D option. Not sure about
> that. It is old in my mind and I have to check this out again.

-D will work, but is a bit ugly.  I see the ninja build files do not 
have a rule per file, but rather have production rules most of the time?

>
> In a general manner I wanted to prevent Ninja to spawn a shell which in
> turn parse the command since it is not that portable on Windows and thus
> to provide an alternative syntax to just spawn a process. Something
> closer to "execute_process" than "system" to say it shortly.
>

OK, so ninja does not have a native execute_process.  How is anyone 
doing anything with ninja on windows  right now?

-Bill





More information about the cmake-developers mailing list