Skip to content

Commit

Permalink
Set OpenGL preference for conflicting GL libs
Browse files Browse the repository at this point in the history
  • Loading branch information
twaritwaikar committed Mar 16, 2019
1 parent 7bfd54f commit cad1c9e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ if (WIN32)
endif (WIN32)

if (UNIX)
FIND_PACKAGE(OpenGL REQUIRED)
FIND_PACKAGE(GLEW REQUIRED)
FIND_PACKAGE(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
FIND_PACKAGE(DevIL REQUIRED)
FIND_PACKAGE(SFML COMPONENTS audio REQUIRED)
MESSAGE(STATUS "Unix platform detected")
set(OpenGL_GL_PREFERENCE "GLVND")
FIND_PACKAGE(OpenGL REQUIRED)
FIND_PACKAGE(GLEW REQUIRED)
FIND_PACKAGE(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
FIND_PACKAGE(DevIL REQUIRED)
FIND_PACKAGE(SFML COMPONENTS audio REQUIRED)
MESSAGE(STATUS "Unix platform detected")
endif (UNIX)

# Include sub - projects.
Expand Down

0 comments on commit cad1c9e

Please sign in to comment.