diff options
author | Kai Köhne <kai.koehne@qt.io> | 2020-12-09 16:59:21 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-12-10 13:07:59 +0000 |
commit | d1819dbd36cd2abe543bb5824032b724c169a38c (patch) | |
tree | f5eb217b54f2d7f9d4e8130ff3c813a1e348b55c /cmake | |
parent | cd270555d650d78ce2ab2fd84c11ed8ddcd3c14d (diff) | |
download | qtimageformats-d1819dbd36cd2abe543bb5824032b724c169a38c.tar.gz |
Fix linking of WebP through CMake API
The library target name is WebP::libwebpmux, not WebP::webpmux
[ChangeLog][Build System] Fixed an error that might have led to
not compiling webp plugin when configuring Qt yourself.
Pick-to: 6.0
Fixes: QTBUG-89280
Change-Id: Iaccad7d1b2ce580c6154d9bd01d5cc2d59ce7e56
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindWrapWebP.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindWrapWebP.cmake b/cmake/FindWrapWebP.cmake index de4c414..b546529 100644 --- a/cmake/FindWrapWebP.cmake +++ b/cmake/FindWrapWebP.cmake @@ -6,10 +6,10 @@ # paths as hints. find_package(WebP QUIET) -if(TARGET WebP::webp AND TARGET WebP::webpdemux AND TARGET WebP::webpmux) +if(TARGET WebP::webp AND TARGET WebP::webpdemux AND TARGET WebP::libwebpmux) set(WrapWebP_FOUND ON) add_library(WrapWebP::WrapWebP INTERFACE IMPORTED) - target_link_libraries(WrapWebP::WrapWebP INTERFACE WebP::webp WebP::webpdemux Webp::webpmux) + target_link_libraries(WrapWebP::WrapWebP INTERFACE WebP::webp WebP::webpdemux WebP::libwebpmux) return() endif() |