SDL_image: xcode+cmake: Use SDL3_image.framework/SDL3_image as IMPORTED_LOCATION

From 4c9986e215a670acba3181884e99fdf6dfab823e Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 25 Jan 2025 13:49:49 +0100
Subject: [PATCH] xcode+cmake: Use SDL3_image.framework/SDL3_image as
 IMPORTED_LOCATION

Not adding /SDL3_image causes CMake to no longer set the RUNPATh on
binaries in the build directory.
It also breaks compatibility with CMake versions older then 3.28.
---
 Xcode/pkg-support/resources/CMake/SDL3_imageConfig.cmake        | 2 +-
 .../resources/share/cmake/SDL3_image/SDL3_imageConfig.cmake     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Xcode/pkg-support/resources/CMake/SDL3_imageConfig.cmake b/Xcode/pkg-support/resources/CMake/SDL3_imageConfig.cmake
index 8f22236c..4733aebf 100644
--- a/Xcode/pkg-support/resources/CMake/SDL3_imageConfig.cmake
+++ b/Xcode/pkg-support/resources/CMake/SDL3_imageConfig.cmake
@@ -57,7 +57,7 @@ if(NOT TARGET SDL3_image::SDL3_image-shared)
     set_target_properties(SDL3_image::SDL3_image-shared
         PROPERTIES
             FRAMEWORK "TRUE"
-            IMPORTED_LOCATION "${_sdl3_image_framework_path}"
+            IMPORTED_LOCATION "${_sdl3_image_framework_path}/SDL3_image"
             COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED"
             INTERFACE_SDL3_SHARED "ON"
             COMPATIBLE_INTERFACE_STRING "SDL_VERSION"
diff --git a/Xcode/pkg-support/resources/share/cmake/SDL3_image/SDL3_imageConfig.cmake b/Xcode/pkg-support/resources/share/cmake/SDL3_image/SDL3_imageConfig.cmake
index 7aa1c461..70df77b1 100644
--- a/Xcode/pkg-support/resources/share/cmake/SDL3_image/SDL3_imageConfig.cmake
+++ b/Xcode/pkg-support/resources/share/cmake/SDL3_image/SDL3_imageConfig.cmake
@@ -129,7 +129,7 @@ if(NOT TARGET SDL3_image::SDL3_image-shared)
         set_target_properties(SDL3_image::SDL3_image-shared
             PROPERTIES
                 FRAMEWORK "TRUE"
-                IMPORTED_LOCATION "${_sdl3_image_framework_path}"
+                IMPORTED_LOCATION "${_sdl3_image_framework_path}/SDL3_image"
         )
     endif()
     set_target_properties(SDL3_image::SDL3_image-shared