← Back to team overview

dolfin team mailing list archive

Re: Repeated libraries when linking

 



On 30/08/10 08:43, Johannes Ring wrote:
On Mon, Aug 30, 2010 at 9:35 AM, Garth N. Wells<gnw20@xxxxxxxxx>  wrote:


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.

Ok, I see. Could it be related with find_package(Trilinos) being
called inside FindTrilinos (same name)?


We had the issue before the new FindTrilinos.camek file. It seems to happen with some other libraries too (Trilinos is the most noticeable because there are so many libraries).

Garth


Johannes



References