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

Allie Vacanti allison.vacanti at kitware.com
Tue Jan 23 13:10:02 EST 2018


vtkRenderingGL2PSOpenGL2 is an implementation detail that bridges the
rendering library and gl2ps without creating a direct dependency on gl2ps.
By design, linking to it should not pull in the actual gl2ps library as a
dependency.

I'm not aware of any way to disable this module, AFAIK it seems to be
autoenabled it implements a pure abstract interface in vtkRenderingOpenGL2.
Someone with more knowledge of the details for the IMPLEMENTS keyword in
the module system may know of a trick that I'm not aware of, though.

HTH,
Allie

On Tue, Jan 23, 2018 at 3:26 AM, Boris Basic <baljci at hotmail.com> wrote:

> Hi,
>
>
> When generating a Visual Studio project using CMake, project which depends
> on vtkRenderingOpenGL2, the following preprocessor definition is added to
> the vcxproj: "vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2)".
> This requires the project to link with vtkRenderingGL2PSOpenGL2. But as
> my project does not require GL2PS, I would like to get rid of this forced
> dependency, but could not find how to remove or change the autoinit
> definition. Is it possible to do that?
>
>
> Cheers,
>
> Boris
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180123/b2cc48c1/attachment.html>


More information about the vtkusers mailing list