summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorJordan Williams <jordan@jwillikers.com>2024-02-02 13:45:18 (GMT)
committerBrad King <brad.king@kitware.com>2024-02-05 19:06:06 (GMT)
commitaebebf72df6f1ed042fe2a6f399e39c1b22bdaab (patch)
tree1a7570de611a4455bc1babf6bb59345c0cd05fbc /Tests/RunCMake
parent2c3509136f5efefcd72b13fbfcc065c5b23914ad (diff)
downloadCMake-aebebf72df6f1ed042fe2a6f399e39c1b22bdaab.zip
CMake-aebebf72df6f1ed042fe2a6f399e39c1b22bdaab.tar.gz
CMake-aebebf72df6f1ed042fe2a6f399e39c1b22bdaab.tar.bz2
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
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/FindOpenGL/CMP0072-common.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindOpenGL/CMP0072-common.cmake b/Tests/RunCMake/FindOpenGL/CMP0072-common.cmake
index 3fe8030..ae0ce27 100644
--- a/Tests/RunCMake/FindOpenGL/CMP0072-common.cmake
+++ b/Tests/RunCMake/FindOpenGL/CMP0072-common.cmake
@@ -2,6 +2,7 @@ set(CYGWIN 0)
set(WIN32 0)
set(APPLE 0)
set(OPENGL_INCLUDE_DIR GL/include)
+set(OPENGL_GLU_INCLUDE_DIR GLU/include)
set(OPENGL_GLX_INCLUDE_DIR GLX/include)
set(OPENGL_gl_LIBRARY GL)
set(OPENGL_opengl_LIBRARY OpenGL)