[CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

Peter Collingbourne peter at pcc.me.uk
Sun Sep 11 23:01:58 EDT 2011


On Fri, Sep 09, 2011 at 11:52:23AM -0400, Clifford Yapp wrote:
> On Thu, Sep 8, 2011 at 2:54 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 
> >
> > Anyone who is interested in trying the Ninja generator with
> > their own projects is welcome to clone my repository at:
> >
> > https://github.com/pcc/CMake/tree/ninja-generator
> >
> > and to report any issues encountered.  Note that the generator is
> > currently only known to work on Linux.  To select the Ninja generator
> > you can pass the option "-G Ninja" on the cmake command line.
> >
> 
> Gave it a whirl with BRL-CAD.  You caught me out fair and square on one
> unspecified dependency that no other build system has caught, which is kinda
> cool.
> 
> It seems to mostly build, but it's not recognizing that it's done (if I
> re-run ninja, it redoes most of the build).  This could be something I'm not
> doing right or expected ninja behavior at this stage, but I thought I'd
> mention it.

Hopefully this is a known issue, which I'm currently working on.

> It looks like various custom commands aren't running (some tcl related
> stuff, docbook documentation generation) - are custom commands currently
> supported?

Yes, custom commands and targets are supported.  There was a bug (which
is now fixed) that caused custom commands not be built by default.  Now
all targets except those marked EXCLUDE_FROM_ALL are built by default.

> For the core program building though, looks like it succeeded quite handily
> - very nice!  Unfortunately, my time delta calculation was one of the
> targets not built (or at least I don't see its output) so I'm not sure what
> the time difference is yet ;-).

You could always use the "time" command...

Thanks,
-- 
Peter


More information about the CMake mailing list