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

Ed Scott Wilson Garcia edscott at imp.mx
Mon Sep 21 17:47:17 CEST 2020


Good. Just maybe some lines in the documentation for anyone who might want to build the static library, for whatever reason.

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Dune-devel <dune-devel-bounces at lists.dune-project.org> on behalf of Christoph GrĂ¼ninger <foss at grueninger.de>
Sent: Sunday, September 20, 2020 2:18:22 PM
To: dune-devel at lists.dune-project.org <dune-devel at lists.dune-project.org>
Subject: [Dune-devel] remove DUNE_BUILD_BOTH_LIBS from CMake (!858)

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]

_______________________________________________
Dune-devel mailing list
Dune-devel at lists.dune-project.org
https://lists.dune-project.org/mailman/listinfo/dune-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20200921/03804c72/attachment.htm>


More information about the Dune-devel mailing list