CMake for D2 ready for testers

Gour gour at atmarama.net
Tue Feb 22 04:05:14 PST 2011


On Tue, 22 Feb 2011 12:07:13 +0100
Jens Mueller <jens.k.mueller at gmx.de> wrote:

> It does work for me most of the time. I work on Linux. There is one
> neat trick if you need to link against shared libraries which isn't
> supported by dmd yet. For these cases I rely on gcc.
> E.g.
> add_executable(myDExecutable src.d)
> set_target_properties(myDExecutable PROPERTIES LINKER_LANGUAGE C)
> target_link_libraries(myDExecutable ${CMAKE_REQUIRED_LIBRARIES})
> 
> will link myDExecutable against libraries mentioned in
> CMAKE_REQUIRED_LIBRARIES.

Cute...Still, I've to learn more about CMake...

> Yeah. I'll guess though. But since it has it's own language some
> things are really annoying to do. 

I could imagine...still cmake is meta-build system which uses
established mechanisms to do the real build.

> I think the newer systems are better in that regard. They give you a
> nicer syntax and usually a full blown scripting language.

I would say that having full scripting language on disposal might be
blessing as well as the curse. ;)

> I just pick the one that works for me right now since there will be
> a better tool later anyway.

Well, I do not like to think too much about build-system, but having
one that 'just works'. Otherwise, it is distraction only taking focus
away from the real work...In that vein I preferred using darcs as my
DVCS or now using e.g. Fossil over Git. :-)

> But I hope that the tools for configuring software stabilizes more
> and more as time goes by.

I'm also going for stability and that's why I plan to move from Linux
to free(pc)bsd soon. ;)


Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: CDBF17CA


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110222/08210ef6/attachment.pgp>


More information about the Digitalmars-d mailing list