Skip to content

Merge branch 'feature/allow-shared-libs-with-object-libaries' into 'master'

Christoph Grüninger requested to merge cherry-pick-b2d54827 into releases/2.5

Allow using object libraries in conjunction with shared libs.

CMake's object libraries cannot judge whether they will be used in shared libraries. To allow ease of in core and downstream modules we resort to compiling position independent code whenever shared DUNE libraries are requested. This is done by setting CMAKE_POSITION_INDEPENDENT_CODE to ON. Please not that the can be overriding manually by setting the target property POSITION_INDEPENDENT_CODE to something else where needed.

Closes /staging/dune-uggrid#16 (closed)

See merge request !160 (merged)

Merge request reports