On 2012/3/12 Mathieu Malaterre wrote:
> Started discussion at:
>
> http://www.cmake.org/pipermail/cmake/2012-March/049596.html

Hello Mathieu,

A solution is to move targets related to wrapped languages from
VTKTargets.cmake into VTKTargets${lang}.cmake and install this file
into ${lang}-vtk.  Here is a (mostly tested) patch.  I used this
approach in oce source package (in experimental).
There is one problem though, cmake complains about missing targets:
  CMake Error: INSTALL(EXPORT "VTKTargetsPythonD" ...) includes target
"vtkCommonPythonD" which requires target "vtksys" that is not in the
export set.
  ...
Files are generated, but cmake returns 1, so errors have to be ignored
which is quite annoying.

Denis

Attachment: split-VTKTargets.patch
Description: Binary data

Reply via email to