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