Merge pull request #10254 from sergiobenrocha2/patch-1

Missing -lEGL when -DUSING_EGL=ON
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2017-12-04 19:41:09 +01:00
commit 62fc802543
1 file changed
+4
+4
View File
@@ -129,6 +129,10 @@ if(NOT OPENGL_LIBRARIES AND USING_GLES2)
set(OPENGL_LIBRARIES GLESv2)
endif()
if(USING_EGL)
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} EGL)
endif()
if(NOT OPENGL_LIBRARIES)
find_package(OpenGL REQUIRED)
endif()