Browse Source

modules: link to EGL instead of GL in FindEGL on Emscripten.

Those are different, and using GL leads to errors about undefined EGL
symbols.
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
0a66b13f8f
  1. 6
      modules/FindEGL.cmake

6
modules/FindEGL.cmake

@ -38,10 +38,10 @@
# DEALINGS IN THE SOFTWARE. # DEALINGS IN THE SOFTWARE.
# #
# Under Emscripten, GL is linked implicitly. With MINIMAL_RUNTIME you need to # Under Emscripten, EGL is linked implicitly. With MINIMAL_RUNTIME you need to
# specify -lGL. Simply set the library name to that. # specify -lEGL. Simply set the library name to that.
if(CORRADE_TARGET_EMSCRIPTEN) 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() else()
find_library(EGL_LIBRARY NAMES find_library(EGL_LIBRARY NAMES
EGL EGL

Loading…
Cancel
Save