From 5380afe02b0fa1f7d212e8639981e0df524315ac Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Thu, 13 Jun 2002 11:48:28 -0400 Subject: ENH: make all OpenGL libs advanced, and add support for glu lib with Borland --- Modules/FindGLU.cmake | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Modules/FindGLU.cmake') diff --git a/Modules/FindGLU.cmake b/Modules/FindGLU.cmake index 75ac7e0740..8b795ad909 100644 --- a/Modules/FindGLU.cmake +++ b/Modules/FindGLU.cmake @@ -7,7 +7,11 @@ # IF (WIN32) - SET (GLU_LIBRARY glu32 CACHE STRING "GLU library for win32") + IF(BORLAND) + SET (GLU_LIBRARY import32 CACHE STRING "GLU library for win32") + ELSE(BORLAND) + SET (GLU_LIBRARY glu32 CACHE STRING "GLU library for win32") + ENDIF(BORLAND) ELSE (WIN32) FIND_PATH(GLU_INCLUDE_PATH GL/gl.h /usr/include @@ -16,6 +20,9 @@ ELSE (WIN32) /opt/graphics/OpenGL/include /usr/X11R6/include ) + MARK_AS_ADVANCED( + GLU_INCLUDE_PATH + ) FIND_LIBRARY(GLU_LIBRARY GLU /usr/lib @@ -26,3 +33,7 @@ ELSE (WIN32) ) ENDIF (WIN32) + +MARK_AS_ADVANCED( + GLU_LIBRARY +) -- cgit v1.2.1