mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
CMakeLists: Link in system framework libraries explicitly on macOS
Makes our libraries explicitly link in which libraries they need. This makes our dependencies explicit and removes the reliance on the LIBS variable to contain the libraries that they need.
This commit is contained in:
@ -37,10 +37,6 @@ if(WIN32)
|
||||
ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp
|
||||
)
|
||||
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
|
||||
@ -53,6 +49,7 @@ elseif(APPLE)
|
||||
${CARBON_LIBRARY}
|
||||
${COCOA_LIBRARY}
|
||||
${FORCEFEEDBACK_LIBRARY}
|
||||
${IOK_LIBRARY}
|
||||
)
|
||||
elseif(X11_FOUND)
|
||||
target_sources(inputcommon PRIVATE
|
||||
|
Reference in New Issue
Block a user