summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-07 17:46:02 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-07 17:46:02 (GMT)
commit76f905002617dd534df04f1c1c0842d59f50f531 (patch)
treeddfb26a19fe535d2e17e22bd8fe8ca0c084e6b92 /Modules/FindOpenGL.cmake
parentfadff337910f1c6faf5a2e36afe54b6ea1aee0e8 (diff)
downloadCMake-76f905002617dd534df04f1c1c0842d59f50f531.zip
CMake-76f905002617dd534df04f1c1c0842d59f50f531.tar.gz
CMake-76f905002617dd534df04f1c1c0842d59f50f531.tar.bz2
ENH: Adding support for 64-bit library paths. Contributed by Peter Vanroose.
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r--Modules/FindOpenGL.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index c20aaaf..eaf9efb 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -30,11 +30,13 @@ IF (WIN32)
)
FIND_LIBRARY(OPENGL_gl_LIBRARY opengl32
+ /usr/lib64
/usr/lib
/usr/lib/w32api
)
FIND_LIBRARY(OPENGL_glu_LIBRARY glu32
+ /usr/lib64
/usr/lib
/usr/lib/w32api
)
@@ -81,10 +83,12 @@ ELSE (WIN32)
FIND_LIBRARY(OPENGL_gl_LIBRARY
NAMES GL MesaGL
- PATHS /usr/lib
+ PATHS /usr/lib64
+ /usr/lib
/usr/local/lib
/opt/graphics/OpenGL/lib
/usr/openwin/lib
+ /usr/X11R6/lib64
/usr/X11R6/lib
/usr/shlib
)
@@ -106,10 +110,12 @@ ELSE (WIN32)
FIND_LIBRARY(OPENGL_glu_LIBRARY
NAMES GLU MesaGLU
PATHS ${OPENGL_gl_LIBRARY}
+ /usr/lib64
/usr/lib
/usr/local/lib
/opt/graphics/OpenGL/lib
/usr/openwin/lib
+ /usr/X11R6/lib64
/usr/X11R6/lib
/usr/shlib
)