Skip to content
  • Tom Fogal's avatar
    FindOpenGL: Add support for GLVND on Linux · e2e8a690
    Tom Fogal authored and Brad King's avatar Brad King committed
    Find GLVND components if available.  Add `GLX` and `EGL` options for
    COMPONENTS that allow requesting these libraries explicitly.  Introduce
    new import targets for these windowing-system-specific libraries.
    
    On a GLVND system, populate the legacy `OPENGL_LIBRARIES` variable and
    the `OpenGL::GL` target using the `OpenGL` and `GLX` components.  On
    non-GLVND systems, continue to use the legacy `GL` library and simply do
    not provide the GLVND components.  Application code can choose to adapt
    based on the availability of GLVND components as imported targets.
    e2e8a690