Merge branch 'libwebp' of github.com:cjmayo/wxWidgets

CMake: Support finding system libwebp using pkg-config too,

See #25763.
This commit is contained in:
Vadim Zeitlin
2025-09-08 14:29:08 +02:00
2 changed files with 8 additions and 2 deletions
-2
View File
@@ -69,6 +69,4 @@ if(wxUSE_LIBWEBP STREQUAL "builtin")
)
endif()
elseif(wxUSE_LIBWEBP)
find_package(WebP REQUIRED)
endif()
+8
View File
@@ -0,0 +1,8 @@
find_package(WebP CONFIG)
if(NOT WebP_FOUND)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(WebP libwebp)
endif()
endif()