← Back to team overview

dolfin team mailing list archive

Re: Repeated libraries when linking

 



On 30/08/10 08:33, Johannes Ring wrote:
On Mon, Aug 30, 2010 at 8:13 AM, Anders Logg<logg@xxxxxxxxx>  wrote:
On Sun, Aug 29, 2010 at 11:15:03PM +0100, Garth N. Wells wrote:
Does anyone know why libraries appear multiple times with CMake when
linking? For example, all the Trilinos libs appear twice (despite
only appearing once in dofin-config.cmake)?

Garth

No idea, but I've also seen this.

What about using

   list(REMOVE_DUPLICATES<list>)

on DOLFIN_TARGET_LINK_LIBRARIES and the other DOLFIN_INCLUDE_DIRECTORIES?


There are some duplicates in DOLFIN_TARGET_LINK_LIBRARIES (e.g. blas), but the Trilinos libs are not duplicated, but the Trilinos libs appear twice when linking.

Garth

Johannes



Follow ups

References