Permalink
Browse files

Merge pull request #10422 from psyke83/patch-1

CMakeLists: relocate EGL library name detection
  • Loading branch information...
unknownbrackets committed Dec 20, 2017
2 parents 2822a4f + 20080ba commit 8ff9a0465c62f476633cd536c3c6784ac9450c05
Showing with 5 additions and 5 deletions.
  1. +5 −5 CMakeLists.txt
View
@@ -130,7 +130,10 @@ if(NOT OPENGL_LIBRARIES AND USING_GLES2)
endif()
if(USING_EGL)
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} EGL)
if(NOT EGL_LIBRARIES)
set(EGL_LIBRARIES EGL)
endif()
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} ${EGL_LIBRARIES})
endif()
if(NOT OPENGL_LIBRARIES)
@@ -748,10 +751,7 @@ elseif(TARGET SDL2::SDL2)
set(nativeExtra ${nativeExtra} SDL/SDLMain.h SDL/SDLMain.mm)
set(nativeExtraLibs ${nativeExtraLibs} ${COCOA_LIBRARY})
elseif(USING_EGL)
if(NOT EGL_LIBRARIES)
set(EGL_LIBRARIES EGL)
endif()
set(nativeExtraLibs ${nativeExtraLibs} pthread ${EGL_LIBRARIES})
set(nativeExtraLibs ${nativeExtraLibs} pthread)
endif()
set(TargetBin PPSSPPSDL)
elseif(WIN32)

0 comments on commit 8ff9a04

Please sign in to comment.