Skip to content

Commit

Permalink
Add libwebpdemux to .pc file for static builds
Browse files Browse the repository at this point in the history
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
  • Loading branch information
madebr committed Oct 8, 2024
1 parent c686589 commit a010117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ if(SDLIMAGE_WEBP)
message(STATUS "${PROJECT_NAME}: Using system libwebp")
set(SDLIMAGE_WEBP_ENABLED TRUE)
if(NOT SDLIMAGE_WEBP_SHARED)
list(APPEND PC_REQUIRES libwebp)
list(APPEND PC_REQUIRES libwebp libwebpdemux)
list(APPEND INSTALL_EXTRA_CMAKE_MODULES cmake/Findwebp.cmake)
endif()
else()
Expand Down

0 comments on commit a010117

Please sign in to comment.