Build: link with GameController and CoreHaptics frameworks on macOS

In preparation of upcoming SDL upgrade, which uses these.
This commit is contained in:
Brecht Van Lommel 2022-04-18 18:58:05 +02:00
parent 2cb76a6c8d
commit fc58368263
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ if(WITH_SDL)
find_package(SDL2)
set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS})
set(SDL_LIBRARY ${SDL2_LIBRARIES})
string(APPEND PLATFORM_LINKFLAGS " -framework ForceFeedback")
string(APPEND PLATFORM_LINKFLAGS " -framework ForceFeedback -framework GameController -framework CoreHaptics")
endif()
set(PNG_ROOT ${LIBDIR}/png)