mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-23 09:34:55 +00:00
CMake: Link against OpenGL when using EGL but not GLES2
At least for Linux armv7hl this seems to be necessary, otherwise build fails with: /usr/bin/ld: lib/libnative.a(GLQueueRunner.cpp.o): undefined reference to symbol 'glStencilOp'
This commit is contained in:
parent
67d6e3d384
commit
ea2025c291
@ -182,6 +182,10 @@ 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)
|
||||
@ -189,10 +193,6 @@ if(USING_EGL)
|
||||
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} ${EGL_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(NOT OPENGL_LIBRARIES)
|
||||
find_package(OpenGL REQUIRED)
|
||||
endif()
|
||||
|
||||
find_package(SDL2)
|
||||
include(FindThreads)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user