CMake for D2 ready for testers

Jens Mueller jens.k.mueller at gmx.de
Mon Feb 21 03:40:11 PST 2011


Gour wrote:
> On Sun, 5 Sep 2010 22:28:41 -0700
> SK <sk at metrokings.com> wrote:
> 
> > Why labor over buggy Makefiles when you could be laboring over buggy
> > CMake files at a much more productive level of abstraction?  :o)
> 
> I played with Waf a bit and it has nice support for D.
> 
> However, despite many contributors listed, it still seems to be mostly
> one-man-show which makes me a bit reluctant to use it over Cmake
> (SCons seems to be very slow without much progress), so I wonder what
> is the current status of the project?
> 
> Any hope that D support will be applied in upstream?

I don't know about upstreaming it. Certainly it would be nice. But for
doing so I need polish it further.
It seems that not many people are using CMakeD and there seems to be
less interest in it. But I used it for a word cloud I programed for a
course (see here http://gitorious.org/wordcloud). The nice thing is that
you can rely on CMake's modules. E.g. in the above example it was
straightforward to let CMake make sure that the GD library it installed.
That makes it very useful for integrating a C/C++ library.
If you do not know already, the getting started guide is here
http://code.google.com/p/cmaked2/wiki/GettingStarted
According to http://code.google.com/p/cmaked2/wiki/TestedPlatforms it
was used on recent versions of Debian, ArchLinux, Gentoo, and Ubuntu
with CMake at least 2.8.2 and dmd at least 2.049. It should work on
Windows as well. Some people have used it.
Recently I added gdc support which works for me. But so far I haven't
got any feedback from other users.

> What about 64bit support in dmd2?

You mean support for building 64bit code with dmd2 using CMakeD? That
should be fairly straightforward given that you just need to pass -m64
to dmd. I think by default it builds 32-bit even on a 64-bit machine.
But I assume this is going to change once 64-bit is stable.
If I find some time I will build the above word cloud example for
64-bit and report here, if that helps you.
Recently I've been a bit distracted from CMakeD development since I
stumbled over
Gyp
http://code.google.com/p/gyp/
and
Premake
http://industriousone.com/premake
Both address similar needs like CMake but do not support D yet.

Jens


More information about the Digitalmars-d mailing list