summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-04-15 19:37:59 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-17 14:16:46 (GMT)
commit844050adaf4ff28356a14b34d3ec73f36e843339 (patch)
tree54bcb8f1e951d5d3231f87d75cce27447b3844e5 /Modules/FindOpenGL.cmake
parent5e98111643e22ad515afa2bf48a92573b6987115 (diff)
downloadCMake-844050adaf4ff28356a14b34d3ec73f36e843339.zip
CMake-844050adaf4ff28356a14b34d3ec73f36e843339.tar.gz
CMake-844050adaf4ff28356a14b34d3ec73f36e843339.tar.bz2
FindOpenGL: look for GLVND libraries with a libglvnd suffix
On CentOS 6.10, the libglvnd package from EPEL installs its libraries under a libglvnd subdirectory.
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r--Modules/FindOpenGL.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index 832dca2..00db033 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -205,11 +205,13 @@ else()
find_library(OPENGL_glx_LIBRARY
NAMES GLX
PATHS ${_OPENGL_LIB_PATH}
+ PATH_SUFFIXES libglvnd
)
find_library(OPENGL_egl_LIBRARY
NAMES EGL
PATHS ${_OPENGL_LIB_PATH}
+ PATH_SUFFIXES libglvnd
)
find_library(OPENGL_glu_LIBRARY
@@ -264,6 +266,7 @@ else()
/usr/openwin/lib
/usr/shlib
${_OPENGL_LIB_PATH}
+ PATH_SUFFIXES libglvnd
)
endif()