From 0a66b13f8f6486a9e1c220fea6a89d56766a9d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 16 Sep 2023 13:43:15 +0200 Subject: [PATCH] modules: link to EGL instead of GL in FindEGL on Emscripten. Those are different, and using GL leads to errors about undefined EGL symbols. --- modules/FindEGL.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/FindEGL.cmake b/modules/FindEGL.cmake index f5391d00f..66a4c5484 100644 --- a/modules/FindEGL.cmake +++ b/modules/FindEGL.cmake @@ -38,10 +38,10 @@ # DEALINGS IN THE SOFTWARE. # -# Under Emscripten, GL is linked implicitly. With MINIMAL_RUNTIME you need to -# specify -lGL. Simply set the library name to that. +# Under Emscripten, EGL is linked implicitly. With MINIMAL_RUNTIME you need to +# specify -lEGL. Simply set the library name to that. if(CORRADE_TARGET_EMSCRIPTEN) - set(EGL_LIBRARY GL CACHE STRING "Path to a library." FORCE) + set(EGL_LIBRARY EGL CACHE STRING "Path to a library." FORCE) else() find_library(EGL_LIBRARY NAMES EGL