SDL_image: Add libwebpdemux to .pc file for static builds (297ab)

From 297ab030766ab8f22c1d3922e0bd68f5334c5c29 Mon Sep 17 00:00:00 2001
From: Wouter Wijsman <[EMAIL REDACTED]>
Date: Wed, 9 Oct 2024 00:18:35 +0200
Subject: [PATCH] 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.

(cherry picked from commit 1fa2a9222d3643e470ea78cb211d7ffa742e1cd6)
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8d4d647..2c9777d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -701,7 +701,7 @@ if(SDL2IMAGE_WEBP)
     else()
         message(STATUS "${PROJECT_NAME}: Using system libwebp")
         find_package(webp REQUIRED)
-        list(APPEND PC_REQUIRES libwebp)
+        list(APPEND PC_REQUIRES libwebp libwebpdemux)
     endif()
     if(SDL2IMAGE_WEBP_SHARED)
         target_include_directories(SDL2_image PRIVATE