[Dune-devel] remove DUNE_BUILD_BOTH_LIBS from CMake (!858)

Christoph GrĂ¼ninger foss at grueninger.de
Sun Sep 20 21:18:22 CEST 2020


Dear Dune users,

when we wrote the current CMake-based build system to replace Autotools,
we were asked to mimic as many features from Autotools as possible.
Now, after we got rid of Autotools and also the way writing CMake has
changed ("modern CMake"), we are planning to overhaul the build system,
make it more modern CMake and less Autotoolish / less Dune-specific.

That's why Simon and myself are proposing to remove options
DUNE_BUILD_BOTH_LIBS and DUNE_USE_ONLY_STATIC_LIBS, cf. dune-common!858.
https://gitlab.dune-project.org/core/dune-common/-/merge_requests/858

Details
There is hardly any use-case for building both, shared and static
libraries, at the same time. It just complicates the whole CMake
structure. Additionally, the option DUNE_USE_ONLY_STATIC_LIBS is a hack
in the CMake automatic find-library and linkage procedure.

If both types of libraries are required, we propose to have two build
directories and build them separately.

Bye
Christoph

-- 
Mit Kurzschlafwettkampfbestzeit
[Tua von Die Orsons - Sowas von egal]




More information about the Dune-devel mailing list