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>
This commit is contained in:
Kai Köhne 2020-12-09 16:59:21 +01:00 committed by Kai Koehne
parent cd270555d6
commit d1819dbd36
1 changed files with 2 additions and 2 deletions

View File

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