Files @ r25524:02dac61ae3ed
Branch filter:

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

rubidium42
Change: mark copy-assignment as deleted for classes with a copy-constructor that is not trivial

This to prevent the default copy-assignment getting used when during the assignment also some other memory needs to be allocated as that would otherwise be freed.
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)