libwebp: fix webpmux lib name for cmake linking
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 1 Oct 2021 07:49:55 +0000 (10:49 +0300)
committerKevin Darbyshire-Bryant <6500011+ldir-EDB0@users.noreply.github.com>
Sat, 2 Oct 2021 18:55:07 +0000 (19:55 +0100)
commit401291ba7e97a696d7f7657f2b483781dee980a2
treee7695459b3c2d4302de7946bc085574ec0813a8a
parent86e26a0c3b18883d8e6884c538d68e04160eaf47
libwebp: fix webpmux lib name for cmake linking

When using CMake the `<prefix>/usr/share/WebP/cmake/WebPConfig.cmake` gets
used to get the names of the libraries to link against.

Since version 1.2.1 of libwebp, libwebpmux is on by default.
This causes a linker error because the linker arg should be `-lwebpmux`
instead of `-llibwebpmux`.

This is easily fixable by correcting the generation of the WebPConfig.cmake
file to append `webpmux` when this lib is enabled.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
libs/libwebp/patches/001-fix-cmake-webpmux-linking.patch [new file with mode: 0644]