diff options
author | Brad King <brad.king@kitware.com> | 2017-11-14 15:54:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-15 18:44:59 (GMT) |
commit | ff3c11eeaca1073664c810dd9e5f88ce38cc78c7 (patch) | |
tree | 3fb48e3e02116559fd91880232b12006a7e26b08 /Modules/FindPNG.cmake | |
parent | aadc38c7fd46827dbd8864e0061c9cf2d16124fe (diff) | |
download | CMake-ff3c11eeaca1073664c810dd9e5f88ce38cc78c7.zip CMake-ff3c11eeaca1073664c810dd9e5f88ce38cc78c7.tar.gz CMake-ff3c11eeaca1073664c810dd9e5f88ce38cc78c7.tar.bz2 |
FindOpenGL: Add option to prefer GLVND for legacy GL
Since commit v3.10.0-rc5~3^2 (FindOpenGL: Default to non-GLVND libraries
for legacy GL, 2017-11-08) users may set `OPENGL_gl_LIBRARY` to empty to
use GLVND components for the legacy GL interfaces. This is useful only
when one knows in advance that the GLVND components will be found.
Add a `OpenGL_GL_PREFERENCE` variable to specify a preference for legacy
GL or GLVND. The latter can suppress `OPENGL_gl_LIBRARY` only when the
needed GLVND components are found. If no preference is explicitly
specified, choose a default based on whether GLVND components were
requested (because this indicates the project has been updated for
CMake 3.10).
Issue: #17437
Issue: #17449
Diffstat (limited to 'Modules/FindPNG.cmake')
0 files changed, 0 insertions, 0 deletions