Skip to content

Commit a010117

Browse files
committed
Add libwebpdemux to .pc file for static builds
This is required to successfully link to SDL2_image if it was build statically while not using the vendored version of libwebp. SDL3 port of 1fa2a92
1 parent c686589 commit a010117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ if(SDLIMAGE_WEBP)
923923
message(STATUS "${PROJECT_NAME}: Using system libwebp")
924924
set(SDLIMAGE_WEBP_ENABLED TRUE)
925925
if(NOT SDLIMAGE_WEBP_SHARED)
926-
list(APPEND PC_REQUIRES libwebp)
926+
list(APPEND PC_REQUIRES libwebp libwebpdemux)
927927
list(APPEND INSTALL_EXTRA_CMAKE_MODULES cmake/Findwebp.cmake)
928928
endif()
929929
else()

0 commit comments

Comments
 (0)