[vtk-developers] Wrapping/Tools

Marcus D. Hanwell marcus.hanwell at kitware.com
Thu Aug 16 16:19:26 EDT 2012


On Thu, Aug 16, 2012 at 3:59 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Thu, Aug 16, 2012 at 1:44 PM, David E DeMarle
> <dave.demarle at kitware.com> wrote:
>> On Thu, Aug 16, 2012 at 3:36 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>
>>> vtkWrapping.cmake to build the hierarchy files whenever the
>>> WrapperTools module is on, but I'm not sure how.
>>
>> me neither.
>
> We can always add a VTK_WRAP_HIERARCHY cmake option if we
> can't think of anything more elegant :)
>
> In any case, I can merge what I've got.
>
I think in this case you should be able to do what I suggested,

if(vtkWrappingTools_ENABLED)
  do_wrap_hierarchy()
endif()

If the wrapping tools module was enabled, that probably means
something wants the hierarchy files too in order to wrap the VTK
modules. This seems like a reasonable exception where you can change
it, at the point when modules are build the module is either on or off
and so this would work reliably.

You could make whatever check you had for wrapped languages collapse
down into the above if (as they will all depend upon/enable the
wrapping tools module). Sorry if I was unclear earlier.

Marcus



More information about the vtk-developers mailing list