[vtk-developers] Wrapping/Tools

David Cole david.cole at kitware.com
Thu Aug 16 16:27:11 EDT 2012


On Thu, Aug 16, 2012 at 4:19 PM, Marcus D. Hanwell <
marcus.hanwell at kitware.com> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>

Maybe this is a dumb question, but why isn't "do_wrap_hierarchy" (or
whatever it represents as a pseudo-code concept in this email) just in the
WrappingTools module anyhow?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120816/b0a3ae19/attachment.html>


More information about the vtk-developers mailing list