Hopefully fix FreeBSD joystick support
This commit is contained in:
parent
b64f04a7d8
commit
87e461bb7e
1 changed files with 3 additions and 0 deletions
3
3rdparty/joystick/CMakeLists.txt
vendored
3
3rdparty/joystick/CMakeLists.txt
vendored
|
@ -34,6 +34,9 @@ elseif(WIN32)
|
|||
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
# no libs here?
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set_target_properties(PLIBJoystick PROPERTIES
|
||||
COMPILE_DEFINITIONS "HAVE_USBHID_H")
|
||||
target_include_directories(PLIBJoystick PRIVATE ${USBHID_INCLUDE_DIR})
|
||||
target_link_libraries(PLIBJoystick ${USBHID_LIBRARY})
|
||||
else()
|
||||
# other / none platform
|
||||
|
|
Loading…
Reference in a new issue