Merge pull request #6558 from lioncash/input
InputCommon/CMakeLists: Link in ForceFeedback library explicitly on macOS
This commit is contained in:
commit
7833f1a931
|
@ -291,7 +291,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
find_library(FOUNDATION_LIBRARY Foundation)
|
find_library(FOUNDATION_LIBRARY Foundation)
|
||||||
find_library(IOB_LIBRARY IOBluetooth)
|
find_library(IOB_LIBRARY IOBluetooth)
|
||||||
find_library(IOK_LIBRARY IOKit)
|
find_library(IOK_LIBRARY IOKit)
|
||||||
find_library(FORCEFEEDBACK ForceFeedback)
|
|
||||||
find_library(OPENGL_LIBRARY OpenGL)
|
find_library(OPENGL_LIBRARY OpenGL)
|
||||||
|
|
||||||
# Link against OS X system frameworks.
|
# Link against OS X system frameworks.
|
||||||
|
@ -302,7 +301,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
${COREFUND_LIBRARY}
|
${COREFUND_LIBRARY}
|
||||||
${CORESERV_LIBRARY}
|
${CORESERV_LIBRARY}
|
||||||
${IOK_LIBRARY}
|
${IOK_LIBRARY}
|
||||||
${FORCEFEEDBACK}
|
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ elseif(APPLE)
|
||||||
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
|
||||||
find_library(CARBON_LIBRARY Carbon)
|
find_library(CARBON_LIBRARY Carbon)
|
||||||
find_library(COCOA_LIBRARY Cocoa)
|
find_library(COCOA_LIBRARY Cocoa)
|
||||||
|
find_library(FORCEFEEDBACK_LIBRARY ForceFeedback)
|
||||||
target_sources(inputcommon PRIVATE
|
target_sources(inputcommon PRIVATE
|
||||||
ControllerInterface/OSX/OSX.mm
|
ControllerInterface/OSX/OSX.mm
|
||||||
ControllerInterface/OSX/OSXJoystick.mm
|
ControllerInterface/OSX/OSXJoystick.mm
|
||||||
|
@ -47,10 +48,11 @@ elseif(APPLE)
|
||||||
ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
|
ControllerInterface/Quartz/QuartzKeyboardAndMouse.mm
|
||||||
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp
|
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(inputcommon PUBLIC
|
target_link_libraries(inputcommon PRIVATE
|
||||||
${COREFOUNDATION_LIBRARY}
|
${COREFOUNDATION_LIBRARY}
|
||||||
${CARBON_LIBRARY}
|
${CARBON_LIBRARY}
|
||||||
${COCOA_LIBRARY}
|
${COCOA_LIBRARY}
|
||||||
|
${FORCEFEEDBACK_LIBRARY}
|
||||||
)
|
)
|
||||||
elseif(X11_FOUND)
|
elseif(X11_FOUND)
|
||||||
target_sources(inputcommon PRIVATE
|
target_sources(inputcommon PRIVATE
|
||||||
|
|
Loading…
Reference in New Issue