[cmake-developers] [PATCH 0/3] The CMake Ninja generator.
Peter Collingbourne
peter at pcc.me.uk
Tue Nov 22 14:45:09 EST 2011
On Tue, Nov 15, 2011 at 06:54:01PM +0100, Nicolas Desprès wrote:
> On Tue, Nov 15, 2011 at 5:29 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:
>
> > On 11/11/2011 9:36 PM, Peter Collingbourne wrote:
> >
> > Note that this generator is *nix only (it relies on POSIX shell
> >> functionality), and will only be built on *nix platforms. I am not
> >> interested in Windows support, but I understand that others have
> >> expressed an interest in adding support.
> >>
> >> How much of the POSIX shell stuff can be done with cmake -E stuff? It
> > would be good to use as little POSIX stuff as possible as someday when
> > someone does the inevitable windows port it is easier...
> >
> >
> 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.
Other than && we also have:
rm -f $file -- used to delete static library archives before rebuilding
: -- used as a no-op command
I think that for the Windows port we can simply select the appropriate
command (e.g. rm vs del) since we know which platform we are building
for.
Thanks,
--
Peter
More information about the cmake-developers
mailing list