We use the logic in FindGLES.cmake to detect GLES2 support during compile time. OPENGLES2_FOUND is never set, even though OPENGLES2_INCLUDE_DIR and OPENGLES2_LIBRARY contain right information. The name passed to find_package_handle_standard_args seems to be the issue here. GLES2 should be changed OPENGLES2. Will update a patch with the correction.
Created attachment 180603 [details] patch
Comment on attachment 180603 [details] patch Looks ok to me, but I have to trust you on this one
Comment on attachment 180603 [details] patch Clearing flags on attachment: 180603 Committed r138437: <http://trac.webkit.org/changeset/138437>
All reviewed patches have been landed. Closing bug.