[cmake-developers] ninja command line options ?

Ben Boeckel ben.boeckel at kitware.com
Tue Apr 3 15:11:57 EDT 2012


On Tue, Apr 03, 2012 at 20:02:38 +0200, Alexander Neundorf wrote:
> I'm thinking about giving ninja + Eclipse a try.
> Short question:
> * how do I tell ninja to build a specific target ?

ninja $target

> * is there a special way to "clean" ?

ninja -t clean

Also see ninja -t list for other special commands.

> * how do I tell ninja to use multiple threads/processes (like -j for make) ?

ninja -jX

(default seems to be N + 2; N == number of "cores" available)

> * is the syntax the same for Windows and Linux ?

I'm pretty sure it is.

--Ben



More information about the cmake-developers mailing list