From fc58368263ce5be7771cc06498ea360fadfc75cf Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 18 Apr 2022 18:58:05 +0200 Subject: [PATCH] Build: link with GameController and CoreHaptics frameworks on macOS In preparation of upcoming SDL upgrade, which uses these. --- build_files/cmake/platform/platform_apple.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index 43ce23081af..cdc9aa91a53 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -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)