Skip to content

Commit

Permalink
xcode+cmake: Use SDL3_mixer.framework/SDL3_mixer as IMPORTED_LOCATION
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
madebr committed Jan 25, 2025
1 parent 723ad21 commit af6a29d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Xcode/pkg-support/resources/CMake/SDL3_mixerConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af6a29d

Please sign in to comment.