[vtkusers] How to disable linking with GL2PS VTK module?

Boris Basic baljci at hotmail.com
Thu Jan 25 04:36:44 EST 2018


Hi Ben,


I was calling 'find_package(VTK 8.1 REQUIRED)'. Giving components corrected the problem.


Thanks!

Boris

________________________________
De : Ben Boeckel <ben.boeckel at kitware.com>
Envoyé : mercredi 24 janvier 2018 14:36
À : Boris Basic
Cc : vtk vtk
Objet : Re: [vtkusers] How to disable linking with GL2PS VTK module?

On Wed, Jan 24, 2018 at 08:31:28 +0000, Boris Basic wrote:
> Actually I found a hack by adding "#undef
> vtkRenderingOpenGL2_AUTOINIT" in one header of my project. Though it's
> not very elegant, it did the job.

How are you calling `find_package(VTK)`? If you don't give components,
all compiled modules are loaded and assumed to be used at once, hence
the autoinit.

You can also use `vtk_module_config` to set `VTK_LIBRARIES` up with a
subset of modules (at least based on the examples).

--Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180125/c9f3d1fd/attachment.html>


More information about the vtkusers mailing list