FLTK logo

[fltk.general] Duplicated libraries

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Duplicated libraries Rob McDonald 23:57 Mar 15  
  I'm using the tip of master 1.4.0.

I'm building with CMake, with FIND_PACKAGE(FLTK CONFIG REQUIRED).

No matter whether I specify my libraries via:

TARGET_LINK_LIBRARIES(foo
${FLTK_LIBRARIES}
)

or

TARGET_LINK_LIBRARIES(foo
fltk::z
fltk::png
fltk::jpeg
fltk::fltk
fltk::forms
fltk::images
fltk::gl
)

I end up with:

[3/5] Linking CXX executable foo

ld: warning: ignoring duplicate libraries: 'fltk/install/lib/libfltk.a', 'fltk/install/lib/libfltk_jpeg.a', 'fltk/install/lib/libfltk_png.a', 'fltk/install/lib/libfltk_z.a'


This seems harmless enough, but it would be great to make it go away.  I've spent the past few hours trying different things, but I can't figure out how CMake is duplicating these libraries.

Is anyone else seeing this sort of thing?

Rob



--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/ca295e34-e4a6-4f4f-9467-95dff77a64ebn%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.