Skip to content

Commit

Permalink
message found OpenGL libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Feb 4, 2024
1 parent 22834a8 commit e731b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rd_party/glew/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ set(GLEW_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.$

if(WIN32 OR MSVC OR APPLE)
find_package(OpenGL COMPONENTS OpenGL REQUIRED)
message(STATUS "OpenGL library: ${OPENGL_gl_LIBRARY}")
set(GLEW_LIBRARIES ${OPENGL_gl_LIBRARY})
else() # == if(UNIX AND NOT APPLE)
set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL COMPONENTS OpenGL GLX REQUIRED)
message(STATUS "OpenGL libraries: ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY}")
set(GLEW_LIBRARIES ${OPENGL_opengl_LIBRARY} ${OPENGL_glx_LIBRARY})
endif()

Expand Down

0 comments on commit e731b10

Please sign in to comment.