summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r--Modules/FindOpenGL.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index ce0f14a..4276512 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -7,7 +7,11 @@
#
IF (WIN32)
- SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
+ IF(BORLAND)
+ SET (OPENGL_LIBRARY import32 CACHE STRING "OpenGL library for win32")
+ ELSE(BORLAND)
+ SET (OPENGL_LIBRARY opengl32 CACHE STRING "OpenGL library for win32")
+ ENDIF(BORLAND)
ELSE (WIN32)
FIND_PATH(OPENGL_INCLUDE_PATH GL/gl.h
/usr/include