Skip to content

Commit

Permalink
build: prefer libglvnd for OpenGL
Browse files Browse the repository at this point in the history
Signed-off-by: David Aguilar <[email protected]>
  • Loading branch information
davvid committed Jul 7, 2018
1 parent 20e59c5 commit e962541
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ IF (NOT DEFINED CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/${VARIANT_DIRECTORY}")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)

# Prefer libglvnd for OpenGL
set(OpenGL_GL_PREFERENCE GLVND)

## Search for useful libraries
find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)
Expand Down

0 comments on commit e962541

Please sign in to comment.