Files @ r25524:02dac61ae3ed
Branch filter:

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

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(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)