<div dir="ltr">For the wiki examples themselves, I don't see harm in using all of the libraries. For applications, using the modular features is probably best.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jun 25, 2013 at 11:19 AM, 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 Tue, Jun 25, 2013 at 10:39 AM, Shawn Waldon <<a href="mailto:swaldon@cs.unc.edu">swaldon@cs.unc.edu</a>> wrote:<br>
> Hi all,<br>
><br>
> I was reading over the build system migration guide<br>
> <a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a><br>
> and I had a question.<br>
><br>
> What if you have an application that you would like to support compilation<br>
> against either VTK 5 or 6? How should you handle that in CMake?<br>
<br>
</div>We were just talking about this in light of a recent report of linking<br>
issues. The current path taken in the VTK examples to support both is<br>
not ideal - it finds/links to every VTK library built if using VTK 6.<br>
<div class="im">><br>
> Reason: I would like my application to be able to build on Ubuntu with the<br>
> version of vtk that you can get from apt-get install libvtk (Currently 5.8<br>
> and unlikely to update to 6.0 anytime soon as far as I know). But when<br>
> building for Mac or Windows where I have to compile vtk anyway, I would like<br>
> to use the lastest version.<br>
><br>
> I also like the idea of using only a subset of the vtk libraries as<br>
> dependencies as explained in the migration guide.<br>
><br>
> If anyone can point me in the right direction I would appreciate it.<br>
><br>
</div>I will see if we can collect our thoughts and address this use case, I<br>
think it is important to still target the libraries you actually want<br>
to use from VTK when finding >=6. After all, modularization was<br>
supposed to make it easier to find/link to a subset rather than all of<br>
VTK! Some fo this is addressed in the page you link to (COMPONENTS,<br>
compiler definitions, VTK_LIBRARIES etc).<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>