From 5e651ee5054a95fdb91702ba1b398d751155febc Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 25 Jan 2025 13:48:06 +0100
Subject: [PATCH] xcode+cmake: Use SDL3_ttf.framework/SDL3_ttfIMPORTED_LOCATION
Not adding /SDL3 _ttfcauses 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_ttfConfig.cmake | 2 +-
Xcode/pkg-support/share/cmake/SDL3_ttf/SDL3_ttfConfig.cmake | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Xcode/pkg-support/resources/CMake/SDL3_ttfConfig.cmake b/Xcode/pkg-support/resources/CMake/SDL3_ttfConfig.cmake
index 892dfb7e..826269f9 100644
--- a/Xcode/pkg-support/resources/CMake/SDL3_ttfConfig.cmake
+++ b/Xcode/pkg-support/resources/CMake/SDL3_ttfConfig.cmake
@@ -46,7 +46,7 @@ if(NOT TARGET SDL3_ttf::SDL3_ttf-shared)
set_target_properties(SDL3_ttf::SDL3_ttf-shared
PROPERTIES
FRAMEWORK "TRUE"
- IMPORTED_LOCATION "${_sdl_ttf_framework_path}"
+ IMPORTED_LOCATION "${_sdl_ttf_framework_path}/SDL3_ttf"
COMPATIBLE_INTERFACE_BOOL "SDL3_SHARED"
INTERFACE_SDL3_SHARED "ON"
COMPATIBLE_INTERFACE_STRING "SDL_VERSION"
diff --git a/Xcode/pkg-support/share/cmake/SDL3_ttf/SDL3_ttfConfig.cmake b/Xcode/pkg-support/share/cmake/SDL3_ttf/SDL3_ttfConfig.cmake
index 5cd5d524..4e2e81dc 100644
--- a/Xcode/pkg-support/share/cmake/SDL3_ttf/SDL3_ttfConfig.cmake
+++ b/Xcode/pkg-support/share/cmake/SDL3_ttf/SDL3_ttfConfig.cmake
@@ -107,7 +107,7 @@ if(NOT TARGET SDL3_ttf::SDL3_ttf-shared)
set_target_properties(SDL3_ttf::SDL3_ttf-shared
PROPERTIES
FRAMEWORK "TRUE"
- IMPORTED_LOCATION "${_sdl3_ttf_framework_path}"
+ IMPORTED_LOCATION "${_sdl3_ttf_framework_path}/SDL3_ttf"
)
endif()
set_target_properties(SDL3_ttf::SDL3_ttf-shared