[vtk-developers] LINK_INTERFACE_LIBRARIES: EXPORT_LIBRARY_DEPENDENCIES deprecation
Mathieu Malaterre
mathieu.malaterre at gmail.com
Sun Feb 28 16:49:05 EST 2010
Hi Brad,
On Fri, Feb 26, 2010 at 7:06 PM, Brad King <brad.king at kitware.com> wrote:
> Mathieu Malaterre wrote:
>> [Reminder: In an installed VTK, when linking to the shared lib
>> vtkIO, cmake does transitive linking and will link an executable to
>> vtkIO/png/jpeg/tiff, instead of just the ${KIT_INTERFACE_LIBRARIES})
>>
>> I'd like to know first if anyone is working on this issue ?
>
> I don't think anyone is actively working on this. I think EXPORT
> rules appear in a few places for host tools during cross compiling.
>
>> If not what are the steps:
>>
>> 1. Remove EXPORT_LIBRARY_DEPENDENCIES() call and replace with
>> install(EXPORT VTKEXPORTNAME ...)
>> 2. Add EXPORT VTKEXPORTNAME to all install(vtkpng|vtktiff|vtkzlib|vtkIO|...)
>> 3. Tweaks (?) VTKConfig.cmake to start using VTKEXPORTNAME.cmake
>> instead of VTKLibDep.cmake.
>
> That's basically it, except for whatever is needed to maintain
> compatibility.
I have prepared a patch for (1) (2) and (3). It is available at:
http://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/VTK/vtk.export.libs.patch
I'd appreciate if you could comment on it. Did I miss anything ?
I made the name configurable so that shared libs (eg. metaio) in
between ITK and VTK can configure there exact name separately.
Thanks,
--
Mathieu
More information about the vtk-developers
mailing list