mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
FindOpenGL: Drop Cygwin-specific behavior and use POSIX code path
Based on downstream patch from Cygwin package for CMake by Marco Atzeri:
* 64864eb8f0/cmake/3.17.3-opengl.patch
This commit is contained in:
committed by
Brad King
parent
8edbc59e46
commit
af666acdf4
@@ -132,19 +132,7 @@ endforeach()
|
||||
|
||||
set(_OpenGL_CACHE_VARS)
|
||||
|
||||
if (CYGWIN)
|
||||
find_path(OPENGL_INCLUDE_DIR GL/gl.h )
|
||||
list(APPEND _OpenGL_REQUIRED_VARS OPENGL_INCLUDE_DIR)
|
||||
|
||||
find_library(OPENGL_gl_LIBRARY opengl32 )
|
||||
find_library(OPENGL_glu_LIBRARY glu32 )
|
||||
|
||||
list(APPEND _OpenGL_CACHE_VARS
|
||||
OPENGL_INCLUDE_DIR
|
||||
OPENGL_gl_LIBRARY
|
||||
OPENGL_glu_LIBRARY
|
||||
)
|
||||
elseif (WIN32)
|
||||
if (WIN32)
|
||||
|
||||
if(BORLAND)
|
||||
set (OPENGL_gl_LIBRARY import32 CACHE STRING "OpenGL library for win32")
|
||||
|
||||
Reference in New Issue
Block a user