2022-04-14 02:26:56 +08:00
|
|
|
diff --git a/cmake/WebPConfig.cmake.in b/cmake/WebPConfig.cmake.in
|
2024-04-19 19:39:52 +08:00
|
|
|
index a0d721f..8726c09 100644
|
2022-04-14 02:26:56 +08:00
|
|
|
--- a/cmake/WebPConfig.cmake.in
|
|
|
|
+++ b/cmake/WebPConfig.cmake.in
|
2024-04-19 19:39:52 +08:00
|
|
|
@@ -13,7 +13,14 @@ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
2023-07-27 10:50:34 +08:00
|
|
|
set_and_check(WebP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
|
2024-04-19 19:39:52 +08:00
|
|
|
set(WebP_INCLUDE_DIRS ${WebP_INCLUDE_DIR})
|
|
|
|
set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIR})
|
2022-04-14 02:26:56 +08:00
|
|
|
-set(WebP_LIBRARIES "@INSTALLED_LIBRARIES@")
|
|
|
|
+set(WebP_LIBRARIES "")
|
|
|
|
+include(SelectLibraryConfigurations)
|
2023-01-27 23:25:42 +08:00
|
|
|
+foreach(_vcpkg_libwebp_lib IN ITEMS @INSTALLED_LIBRARIES@ sharpyuv)
|
|
|
|
+ find_library(_vcpkg_${_vcpkg_libwebp_lib}_LIBRARY_RELEASE NAMES ${_vcpkg_libwebp_lib} lib${_vcpkg_libwebp_lib} NAMES_PER_DIR PATHS "${VCPKG_IMPORT_PREFIX}/lib" NO_DEFAULT_PATH)
|
|
|
|
+ find_library(_vcpkg_${_vcpkg_libwebp_lib}_LIBRARY_DEBUG NAMES ${_vcpkg_libwebp_lib}d lib${_vcpkg_libwebp_lib}d ${_vcpkg_libwebp_lib} lib${_vcpkg_libwebp_lib} NAMES_PER_DIR PATHS "${VCPKG_IMPORT_PREFIX}/debug/lib" NO_DEFAULT_PATH)
|
2022-04-14 02:26:56 +08:00
|
|
|
+ select_library_configurations(_vcpkg_${_vcpkg_libwebp_lib})
|
|
|
|
+ list(APPEND WebP_LIBRARIES ${_vcpkg_${_vcpkg_libwebp_lib}_LIBRARIES})
|
|
|
|
+endforeach()
|
|
|
|
set(WEBP_LIBRARIES "${WebP_LIBRARIES}")
|
2024-04-19 19:39:52 +08:00
|
|
|
|
|
|
|
check_required_components(WebP)
|