Skip to content

Commit

Permalink
xcode+cmake: Use SDL3_ttf.framework/SDL3_ttfIMPORTED_LOCATION
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
madebr committed Jan 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6a13c7a commit 5e651ee
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Xcode/pkg-support/resources/CMake/SDL3_ttfConfig.cmake
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e651ee

Please # to comment.