Files @ r24548:ef970d6568df
Branch filter:

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

Patric Stout
Fix: prevent clients making emergency saves twice if server disconnects (#8477)

This was clearly overlooked during the initial implementation.
1
2
3
4
5
6
7
add_library(PNG::PNG INTERFACE IMPORTED)
set_target_properties(PNG::PNG PROPERTIES
        INTERFACE_COMPILE_OPTIONS "-sUSE_LIBPNG=1"
        INTERFACE_LINK_LIBRARIES "-sUSE_LIBPNG=1"
)

set(PNG_FOUND on)