GLEW_EGL: Fix EGL library check

This commit is contained in:
Danilo Spinella 2019-05-27 10:22:51 +02:00 committed by Nigel Stewart
parent 8c88a0858f
commit 95329dc4a6

View File

@ -87,7 +87,7 @@ endif ()
if (GLEW_EGL AND UNIX) if (GLEW_EGL AND UNIX)
add_definitions (-DGLEW_EGL) add_definitions (-DGLEW_EGL)
if (OpenGL::EGL) if (NOT OpenGL_EGL_FOUND)
message (FATAL_ERROR "EGL library set but not found.") message (FATAL_ERROR "EGL library set but not found.")
endif () endif ()
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES} ${OPENGL_egl_LIBRARY}) set (GLEW_LIBRARIES ${OPENGL_LIBRARIES} ${OPENGL_egl_LIBRARY})