mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
InputCommon/CMakeLists: Link in ForceFeedback library explicitly on macOS
Makes an implicit dependency explicit. Also makes the macOS libraries link privately as they aren't used in the exposed interface.
This commit is contained in:
parent
53b3da7301
commit
b8a4ab23dd
2 changed files with 3 additions and 3 deletions
|
@ -40,6 +40,7 @@ elseif(APPLE)
|
|||
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
||||
find_library(CARBON_LIBRARY Carbon)
|
||||
find_library(COCOA_LIBRARY Cocoa)
|
||||
find_library(FORCEFEEDBACK_LIBRARY ForceFeedback)
|
||||
target_sources(inputcommon PRIVATE
|
||||
ControllerInterface/OSX/OSX.mm
|
||||
ControllerInterface/OSX/OSXJoystick.mm
|
||||
|
@ -47,10 +48,11 @@ elseif(APPLE)
|
|||
ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
|
||||
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp
|
||||
)
|
||||
target_link_libraries(inputcommon PUBLIC
|
||||
target_link_libraries(inputcommon PRIVATE
|
||||
${COREFOUNDATION_LIBRARY}
|
||||
${CARBON_LIBRARY}
|
||||
${COCOA_LIBRARY}
|
||||
${FORCEFEEDBACK_LIBRARY}
|
||||
)
|
||||
elseif(X11_FOUND)
|
||||
target_sources(inputcommon PRIVATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue