Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 583 by
a...@amyspark.me: WebPConfig CMake module is broken when WEBP_USE_THREADS is ON
https://bugs.chromium.org/p/webp/issues/detail?id=583What steps will reproduce the problem?
1. Compile WebP.
2. Use WebP in another CMake project.
What is the expected output? What do you see instead?
When trying to use WebP out of the box, this error is logged:
CMake Error at /home/amalia/krita/android-build-arm64/i/share/cmake/WebP/WebPTargets.cmake:77 (set_target_properties):
The link interface of target "WebP::webp" contains:
Threads::Threads
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
/home/amalia/krita/android-build-arm64/i/share/cmake/WebP/WebPConfig.cmake:30 (include)
cmake/modules/FindWebP.cmake:75 (find_package)
CMakeLists.txt:797 (find_package)
The error will not happen if any other Find module has already looked Threads up.
What version of the product are you using? On what operating system?
WebP 1.2.4 on Android, ndk/22.1.7171670, API level 23, arm64
Please provide any additional information below.
Regression is caused by
https://chromium-review.googlesource.com/c/webm/libwebp/+/3680105.
The changeset changes the dependency to use the imported target Threads::Threads, but the author did not add the corresponding lookup to
WebPConfig.cmake.in.
Issue was found as part of Krita's 5.1 library update drive:
https://invent.kde.org/graphics/krita/-/merge_requests/1594--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings