Files @ r27708:cdce4d13d005
Branch filter:

Location: cpp/openttd-patchpack/source/os/emscripten/cmake/FindSDL2.cmake

Patric Stout
Fix: [Emscripten] actually link against nlohmann_json (#11120)

We fake a plain (non-scoped) library, but we don't actually set
the library to anything valid. In result, it is never actually
linked.
1
2
3
4
5
6
7
add_library(SDL2::SDL2 INTERFACE IMPORTED)
set_target_properties(SDL2::SDL2 PROPERTIES
        INTERFACE_COMPILE_OPTIONS "-sUSE_SDL=2"
        INTERFACE_LINK_LIBRARIES "-sUSE_SDL=2"
)

set(SDL2_FOUND on)