GLEW_EGL: Fix EGL library check

This commit is contained in:
Danilo Spinella 2019-05-27 10:22:51 +02:00
parent 9fb23c3e61
commit d6bf82c4a0

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 ()