<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Den tis 22 jan. 2019 16:31Ben Boeckel via vtk-developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jan 18, 2019 at 14:11:21 -0800, Bill Lorensen wrote:<br>
> I'm curious why with the new module system we need to add<br>
> vtk_module_autoinit for the targets in the new system.<br>
> <br>
> I never used it in the old system.'<br>
<br>
That's because `VTK_DEFINITIONS` had the entries after `find_package`<br>
based on the passed-in components. The new module system instead prefers<br>
to attach the required definition (and header file generation) to<br>
exactly which targets need them.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I don't exactly understand, but I'm by no means a cmake guru, but couldn't the required -D flags be passed through the target interface definitions of the targets that VTK exports, then I could get them through just target_link_libraries(stuff I need)?</div><div dir="auto"><br></div><div dir="auto">Just hoping there's some way of getting rid of the double bookkeeping since it feels like a step back maintenancewise from a user pov if I have to remember to do this.</div><div dir="auto"><br></div><div dir="auto">Elvis</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--Ben<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div></div></div>