Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Use helper to find framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Apr 22, 2019
1 parent aa1b3ee commit 23bab3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,8 @@ elseif(APPLE)
endif()

if(SDL_FRAMEWORK_AUDIOTOOLBOX)
find_library(AUDIOTOOLBOX AudioToolbox)
list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
find_package(audiotoolbox REQUIRED)
list(APPEND EXTRA_LIBS audiotoolbox::audiotoolbox)
endif()

if(SDL_FRAMEWORK_AUDIOUNIT)
Expand Down
3 changes: 3 additions & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if("@APPLE@")
if("@SDL_FRAMEWORK_COREAUDIO@")
find_package(coreaudio REQUIRED)
endif()
if("@SDL_FRAMEWORK_AUDIOTOOLBOX@")
find_package(audiotoolbox REQUIRED)
endif()
if("@SDL_FRAMEWORK_AUDIOUNIT@")
find_package(audiounit REQUIRED)
endif()
Expand Down

0 comments on commit 23bab3d

Please sign in to comment.