Browse Source

modules: Add -s USE_SDL=2 to linker flags in FindMagnum.cmake

Signed-off-by: Squareys <squareys@googlemail.com>
pull/218/head
Squareys 9 years ago committed by Vladimír Vondruš
parent
commit
c01961ba6b
  1. 4
      modules/FindMagnum.cmake

4
modules/FindMagnum.cmake

@ -534,6 +534,10 @@ foreach(_component ${Magnum_FIND_COMPONENTS})
find_package(SDL2) find_package(SDL2)
set_property(TARGET Magnum::${_component} APPEND PROPERTY set_property(TARGET Magnum::${_component} APPEND PROPERTY
INTERFACE_LINK_LIBRARIES SDL2::SDL2) INTERFACE_LINK_LIBRARIES SDL2::SDL2)
if(CORRADE_TARGET_EMSCRIPTEN)
# TODO: give me INTERFACE_LINK_OPTIONS or something, please
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s USE_SDL=2")
endif()
# (Windowless) GLX application dependencies # (Windowless) GLX application dependencies
elseif(_component STREQUAL GlxApplication OR _component STREQUAL WindowlessGlxApplication) elseif(_component STREQUAL GlxApplication OR _component STREQUAL WindowlessGlxApplication)

Loading…
Cancel
Save