[vtk-developers] Use LINK_INTERFACE_LIBRARIES for VTK libs

Brad King brad.king at kitware.com
Tue Jul 21 09:14:19 EDT 2009


Mathieu Malaterre wrote:
>   Since VTK HEAD now requires cmake 2.6.3, I'd like to change the
> target_link_libraries to use the new LINK_INTERFACE_LIBRARIES flag in
> the signature of the function. AFAIK this will be completely backward
> compatible for shared lib.

This should be done, and was one of the reasons we wanted to start
requiring CMake 2.6.3.

In order to take advantage of this from outside VTK then the entire
VTKConfig.cmake generation and installation needs to be reworked.
See the export/import and packaging notes here:

  http://www.cmake.org/Wiki/CMake_2.6_Notes

I don't know if I'll find time to do it, but I can guide anyone
that wants to try it.

-Brad




More information about the vtk-developers mailing list