SDL_mixer: xcode+cmake: Use SDL3_mixer.framework/SDL3_mixer as IMPORTED_LOCATION

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

Not adding /SDL3_mixer 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_mixerConfig.cmake        | 2 +-
 Xcode/pkg-support/share/cmake/SDL3_mixer/SDL3_mixerConfig.cmake | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Xcode/pkg-support/resources/CMake/SDL3_mixerConfig.cmake b/Xcode/pkg-support/resources/CMake/SDL3_mixerConfig.cmake
index 0a653540..2fc55846 100644
--- a/Xcode/pkg-support/resources/CMake/SDL3_mixerConfig.cmake
+++ b/Xcode/pkg-support/resources/CMake/SDL3_mixerConfig.cmake
@@ -72,7 +72,7 @@ if(NOT TARGET SDL3_mixer::SDL3_mixer-shared)
     set_target_properties(SDL3_mixer::SDL3_mixer-shared
         PROPERTIES
             FRAMEWORK "TRUE"
-            IMPORTED_LOCATION "${_sdl3_mixer_framework_path}"
+            IMPORTED_LOCATION "${_sdl3_mixer_framework_path}/SDL3_mixer"
             COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED"
             INTERFACE_SDL3_SHARED "ON"
             COMPATIBLE_INTERFACE_STRING "SDL_VERSION"
diff --git a/Xcode/pkg-support/share/cmake/SDL3_mixer/SDL3_mixerConfig.cmake b/Xcode/pkg-support/share/cmake/SDL3_mixer/SDL3_mixerConfig.cmake
index d6474c3d..be52ed7c 100644
--- a/Xcode/pkg-support/share/cmake/SDL3_mixer/SDL3_mixerConfig.cmake
+++ b/Xcode/pkg-support/share/cmake/SDL3_mixer/SDL3_mixerConfig.cmake
@@ -132,7 +132,7 @@ if(NOT TARGET SDL3_mixer::SDL3_mixer-shared)
         set_target_properties(SDL3_mixer::SDL3_mixer-shared
             PROPERTIES
                 FRAMEWORK "TRUE"
-                IMPORTED_LOCATION "${_sdl3_mixer_framework_path}"
+                IMPORTED_LOCATION "${_sdl3_mixer_framework_path}/SDL3_mixer"
         )
     endif()
     set_target_properties(SDL3_mixer::SDL3_mixer-shared