[Dune] [#1000] Migrate build system from autotools to CMake

Dune flyspray at dune-project.org
Tue Dec 20 18:50:23 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1000 - Migrate build system from autotools to CMake
User who did this - Andreas Lauser (andlaus)

----------
Hi all,

@Andreas: Christoph and me spend the last two weeks with fixing autotools m4 scripts and we banged our heads against the wall way too often. our primary issue with autotools is, that you have way too much surprising behavior: M4 macros may get expanded when you don't expect it and they don't get expanded when you would like to have them expanded, AC_DEFINE does something even if the "if" branch in which it is located does not get executed, there is a weird mix of shell script code, auto shell macros, M4, and -- according to some rumors -- even some perl code, and so on. the result for us was that we had to spend hours to get even trivial changes implemented. CMake on the other hand only uses a quite simple programming language, is much faster at configure time, has much better support for out-of-tree builds and, as added bonus, can even target environments other than Unix (e.g. it can create visual studio projects).

@Elias: The measured speedup of about a 30% for cmake for building DuMuX which is mentioned in the dune user wiki, does not include the time configure takes. (since the CMake support currently in DuMuX is a prototype which does not contain all tests of the autotools build system, it would not have been fair!) it is just compiling and linking the tests that come with the sources. Also, to make the results more comparable, I've copied the autotools-generated config.h to the CMake build directory...
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1000#comment2972

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list