[cmake-developers] ninja command line options ?

Peter Collingbourne peter at pcc.me.uk
Tue Apr 3 14:10:19 EDT 2012


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

ninja $name_of_target

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

ninja -t clean

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

-j, but the default -j value is the number of cores in your machine
plus one.

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

Yes.

Thanks,
-- 
Peter



More information about the cmake-developers mailing list