summaryrefslogtreecommitdiff
path: root/Modules/FindGLUT.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-06-14 11:46:37 -0400
committerSebastien Barre <sebastien.barre@kitware.com>2002-06-14 11:46:37 -0400
commitca071373052bfdf29c914d834dbdbe9d2b8f8f3d (patch)
tree53fb76bdbb85fe799b29c256914c5fc2742fa817 /Modules/FindGLUT.cmake
parent877610f2e9ff9b3f29840d88c39f4136c0dd1dbc (diff)
downloadcmake-ca071373052bfdf29c914d834dbdbe9d2b8f8f3d.tar.gz
ENH: use OPENGL_LIBRARY_PATH as additional search path
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r--Modules/FindGLUT.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake
index da9c0c1953..658d90fabe 100644
--- a/Modules/FindGLUT.cmake
+++ b/Modules/FindGLUT.cmake
@@ -1,21 +1,27 @@
#
-# try to find GLU on UNIX systems once done this will define
+# Try to find GLUT, once done this will define:
#
# GLUT_INCLUDE_PATH = where the GLUT include directory can be found
-# GLUT_LIB_PATH = where the GLUT library can be found
# GLUT_LIBRARY = the name of the GLUT library to link with
#
IF (WIN32)
IF (CYGWIN)
FIND_LIBRARY(GLUT_LIBRARY glut32
+ ${OPENGL_LIBRARY_PATH}
/usr/lib/w32api
+ /usr/lib
+ /usr/local/lib
+ /usr/X11R6/lib
)
ELSE (CYGWIN)
- FIND_LIBRARY(GLUT_LIBRARY glut32)
+ FIND_LIBRARY(GLUT_LIBRARY glut32
+ ${OPENGL_LIBRARY_PATH}
+ )
ENDIF (CYGWIN)
ELSE (WIN32)
FIND_PATH(GLUT_INCLUDE_PATH GL/glut.h
+ ${OPENGL_INCLUDE_PATH}
/usr/include
/usr/include/GL
/usr/local/include
@@ -28,6 +34,7 @@ ELSE (WIN32)
)
FIND_LIBRARY(GLUT_LIBRARY glut
+ ${OPENGL_LIBRARY_PATH}
/usr/lib
/usr/local/lib
/opt/graphics/OpenGL/lib