Skip to content
  • Kenneth Moreland's avatar
    Find OpenGL libraries in external projects · f9eb61d2
    Kenneth Moreland authored and Li-Ta Lo's avatar Li-Ta Lo committed
    Previously when an external project loaded VTK-m with find_package(VTKm)
    and then tried to use anything with OpenGL, you would get compiler (and
    probably linker) errors. The problem was that
    VTKmRenderingContexts.cmake skipped over the loading of OpenGL libraries
    because the vtkm_rendering_gl_context target was imported before this
    code was ever called. Correct the problem by going through the motions
    of checking OpenGL every time.
    f9eb61d2