FindOpenGL: Add support for a separate GLU include directory

Add a OPENGL_GLU_INCLUDE_DIR cache variable for `GL/glu.h` and attach it
as an include directory to the `OpenGL::GLU` target.  Also add a
`OPENGL_INCLUDE_DIRS` result variable to list all include directories.
Account for the GLU header when deciding whether GLU is found.

Fixes: #25627
This commit is contained in:
Jordan Williams
2024-02-02 07:45:18 -06:00
committed by Brad King
parent 2c3509136f
commit aebebf72df
3 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
findopengl-glu-include-dir
--------------------------
* The :module:`FindOpenGL` module learned to find a GLU include
directory different than the GL include directory. A new
``OPENGL_INCLUDE_DIRS`` result variable provides all include
directories.