Skip to content
Permalink
Browse files

Merge pull request #11538 from akien-mga/cmake-arm-linux-opengl

CMake: Link against OpenGL when using EGL but not GLES2
  • Loading branch information...
hrydgard committed Nov 6, 2018
2 parents a96e792 + ea2025c commit b6742af077b4fc78980472cf9e2abb7faf9dfaa4
Showing with 4 additions and 4 deletions.
  1. +4 −4 CMakeLists.txt
@@ -183,17 +183,17 @@ if(NOT OPENGL_LIBRARIES AND USING_GLES2)
set(OPENGL_LIBRARIES GLESv2 EGL)
endif()

if(NOT OPENGL_LIBRARIES)
find_package(OpenGL REQUIRED)
endif()

if(USING_EGL)
if(NOT EGL_LIBRARIES)
set(EGL_LIBRARIES EGL)
endif()
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} ${EGL_LIBRARIES})
endif()

if(NOT OPENGL_LIBRARIES)
find_package(OpenGL REQUIRED)
endif()

find_package(SDL2)
include(FindThreads)

0 comments on commit b6742af

Please sign in to comment.
You can’t perform that action at this time.