Files @ r27697:240cfede70d1
Branch filter:

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

Patric Stout
Fix: [Emscripten] switch to URL for content-service that supports WebSocket (#11106)

In the old days, content.openttd.org and bananas-server.openttd.org
ended up on the same route. But with a recent migration, they do not.
content.openttd.org only serves the custom TCP protocol, and
bananas-server.openttd.org only serves the HTTP(S).

Websockets use HTTPS, and as such, should be routed via the latter.
1
2
3
4
5
6
7
add_library(ZLIB::ZLIB INTERFACE IMPORTED)
set_target_properties(ZLIB::ZLIB PROPERTIES
        INTERFACE_COMPILE_OPTIONS "-sUSE_ZLIB=1"
        INTERFACE_LINK_LIBRARIES "-sUSE_ZLIB=1"
)

set(ZLIB_FOUND on)