[Bf-blender-cvs] [fc58368263c] master: Build: link with GameController and CoreHaptics frameworks on macOS

Brecht Van Lommel noreply at git.blender.org
Mon Apr 18 19:14:50 CEST 2022


Commit: fc58368263ce5be7771cc06498ea360fadfc75cf
Author: Brecht Van Lommel
Date:   Mon Apr 18 18:58:05 2022 +0200
Branches: master
https://developer.blender.org/rBfc58368263ce5be7771cc06498ea360fadfc75cf

Build: link with GameController and CoreHaptics frameworks on macOS

In preparation of upcoming SDL upgrade, which uses these.

===================================================================

M	build_files/cmake/platform/platform_apple.cmake

===================================================================

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)



More information about the Bf-blender-cvs mailing list