SDL_image: Set SDL2_SHARED compatibile interface property for SDL2_image::SDL2_image

From 01bd76d29a0d6453370027356a67d66426266a4f Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 11 Jun 2022 02:44:41 +0200
Subject: [PATCH] Set SDL2_SHARED compatibile interface property for
 SDL2_image::SDL2_image

---
 sdl2_image-config.cmake.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sdl2_image-config.cmake.in b/sdl2_image-config.cmake.in
index da3bec5e..c24a4de3 100644
--- a/sdl2_image-config.cmake.in
+++ b/sdl2_image-config.cmake.in
@@ -65,6 +65,8 @@ if(NOT TARGET SDL2_image::SDL2_image)
     set_target_properties(SDL2_image::SDL2_image
         PROPERTIES
             INTERFACE_INCLUDE_DIRECTORIES "${_sdl2image_incdir}"
+            COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
+            INTERFACE_SDL2_SHARED "ON"
     )
     if(WIN32)
         set_target_properties(SDL2_image::SDL2_image