[Insight-developers] Duplicate Libraries

Brad King brad.king at kitware.com
Wed Apr 13 08:56:00 EDT 2011


On 04/13/2011 07:58 AM, Bill Lorensen wrote:
> Some platforms complain about duplicate libraries during linking. For
> example:
> http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=967667
> <http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=967667>

It's only when shared libraries are duplicated that these tools complain.
In the case of static libraries they *have* to be duplicated in some cases.

> I verified on my mingw build (which does not complain), that the
> link.txt files list some libs multiple times.
> 
> Since CMake generates these link lines, is it possible for CMake or one
> of the ITK cmake macros to eliminate the duplicates? Otherwise, we will
> have to suppress these warnings.

Suppress them.  A fix for this in CMake won't be out for a while.

-Brad


More information about the Insight-developers mailing list