diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-04-15 19:37:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-17 14:16:46 (GMT) |
commit | 844050adaf4ff28356a14b34d3ec73f36e843339 (patch) | |
tree | 54bcb8f1e951d5d3231f87d75cce27447b3844e5 /Modules/FindOpenGL.cmake | |
parent | 5e98111643e22ad515afa2bf48a92573b6987115 (diff) | |
download | CMake-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.cmake | 3 |
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() |