mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 13:18:22 +01:00
CMakeLists.txt: correct libwebpmux name in WebPConfig.cmake
this fixes link errors when using ${WEBP_LIBRARIES} from WebPConfig.cmake: /usr/bin/ld: cannot find -llibwebpmux: No such file or directory /usr/bin/ld: note to link with /tmp/install/lib/libwebpmux.a use -l:libwebpmux.a or rename it to liblibwebpmux.a previously mentioned in https://github.com/openwrt/packages/pull/16784 Bug: webp:575 Change-Id: I38b45cb102ef1086ed992178cd736f45acf10d35
This commit is contained in:
parent
c2e3fd30c4
commit
bfad7ab589
@ -737,6 +737,10 @@ write_basic_package_version_file(
|
||||
|
||||
# Create the Config file.
|
||||
include(CMakePackageConfigHelpers)
|
||||
# Fix libwebpmux reference. The target name libwebpmux is used for
|
||||
# compatibility purposes, but the library mentioned in WebPConfig.cmake should
|
||||
# be the unprefixed version.
|
||||
list(TRANSFORM INSTALLED_LIBRARIES REPLACE "libwebpmux" "webpmux")
|
||||
configure_package_config_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake/WebPConfig.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/WebPConfig.cmake
|
||||
|
Loading…
Reference in New Issue
Block a user