Fix static CMake build using external WebP library

Define WebP_LIBRARIES and WebP_INCLUDE_DIRS in the parent scope,
otherwise the caller never gets the values found by either
find_package() or pkg_check_modules().

Closes #25786.
This commit is contained in:
Maarten Bent
2025-09-10 13:45:45 +02:00
committed by Vadim Zeitlin
parent 6f4586aa12
commit c6ddb6ef89
+3
View File
@@ -6,3 +6,6 @@ if(NOT WebP_FOUND)
pkg_check_modules(WebP libwebp)
endif()
endif()
set(WebP_LIBRARIES ${WebP_LIBRARIES} PARENT_SCOPE)
set(WebP_INCLUDE_DIRS ${WebP_INCLUDE_DIRS} PARENT_SCOPE)