summaryrefslogtreecommitdiffstats
path: root/Modules/FindGLUT.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-06-14 14:35:42 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-06-14 14:35:42 (GMT)
commit72bb1865c3e48e6d2353259bdc163a50cdf61304 (patch)
treefabfea1ea764c2041ebcd320de327a30a5a3b977 /Modules/FindGLUT.cmake
parent35f6b648f20c85f488c06629456893c64ca873bf (diff)
downloadCMake-72bb1865c3e48e6d2353259bdc163a50cdf61304.zip
CMake-72bb1865c3e48e6d2353259bdc163a50cdf61304.tar.gz
CMake-72bb1865c3e48e6d2353259bdc163a50cdf61304.tar.bz2
ENH/FIX: Glut should be found, not set. Add search path for Cygwin
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r--Modules/FindGLUT.cmake30
1 files changed, 18 insertions, 12 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake
index 101f19f..da9c0c1 100644
--- a/Modules/FindGLUT.cmake
+++ b/Modules/FindGLUT.cmake
@@ -7,26 +7,32 @@
#
IF (WIN32)
- SET (GLUT_LIBRARY glut32 CACHE STRING "GLUT library for win32")
+ IF (CYGWIN)
+ FIND_LIBRARY(GLUT_LIBRARY glut32
+ /usr/lib/w32api
+ )
+ ELSE (CYGWIN)
+ FIND_LIBRARY(GLUT_LIBRARY glut32)
+ ENDIF (CYGWIN)
ELSE (WIN32)
FIND_PATH(GLUT_INCLUDE_PATH GL/glut.h
- /usr/include
- /usr/include/GL
- /usr/local/include
- /usr/openwin/share/include
- /opt/graphics/OpenGL/include
- /usr/X11R6/include
+ /usr/include
+ /usr/include/GL
+ /usr/local/include
+ /usr/openwin/share/include
+ /opt/graphics/OpenGL/include
+ /usr/X11R6/include
)
MARK_AS_ADVANCED(
GLUT_INCLUDE_PATH
)
FIND_LIBRARY(GLUT_LIBRARY glut
- /usr/lib
- /usr/local/lib
- /opt/graphics/OpenGL/lib
- /usr/openwin/lib
- /usr/X11R6/lib
+ /usr/lib
+ /usr/local/lib
+ /opt/graphics/OpenGL/lib
+ /usr/openwin/lib
+ /usr/X11R6/lib
)
ENDIF (WIN32)