summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-29 11:53:19 -0400
committerLioncash <mathew1800@gmail.com>2018-03-29 11:53:50 -0400
commitb8a4ab23dd9af403440f81708ff5716536951d40 (patch)
tree367c6eb9ee3a29927ce4963a6b52506b86e5c728 /Source/Core/InputCommon
parent53b3da73011636f377f7d160a27432a8b8816e3d (diff)
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.
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt
index 0efa0e6562..0593782e55 100644
--- a/Source/Core/InputCommon/CMakeLists.txt
+++ b/Source/Core/InputCommon/CMakeLists.txt
@@ -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