<br><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 4:19 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Aug 16, 2012 at 3:59 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
> On Thu, Aug 16, 2012 at 1:44 PM, David E DeMarle<br>
> <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>> wrote:<br>
>> On Thu, Aug 16, 2012 at 3:36 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>><br>
>>> vtkWrapping.cmake to build the hierarchy files whenever the<br>
>>> WrapperTools module is on, but I'm not sure how.<br>
>><br>
>> me neither.<br>
><br>
> We can always add a VTK_WRAP_HIERARCHY cmake option if we<br>
> can't think of anything more elegant :)<br>
><br>
> In any case, I can merge what I've got.<br>
><br>
</div>I think in this case you should be able to do what I suggested,<br>
<br>
if(vtkWrappingTools_ENABLED)<br>
  do_wrap_hierarchy()<br>
endif()<br>
<br>
If the wrapping tools module was enabled, that probably means<br>
something wants the hierarchy files too in order to wrap the VTK<br>
modules. This seems like a reasonable exception where you can change<br>
it, at the point when modules are build the module is either on or off<br>
and so this would work reliably.<br>
<br>
You could make whatever check you had for wrapped languages collapse<br>
down into the above if (as they will all depend upon/enable the<br>
wrapping tools module). Sorry if I was unclear earlier.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br><div><br></div><div>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?</div>
<div><br></div>