mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 06:05:36 +08:00
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:
committed by
Vadim Zeitlin
parent
6f4586aa12
commit
c6ddb6ef89
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user