summaryrefslogtreecommitdiff
path: root/cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2020-04-05 11:46:17 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2020-04-05 11:46:17 +0000
commit6da8c7f9ec62d28019c8c001f164ae0a1a0d7559 (patch)
tree2eb960e3b0854d0da674a4087fbdb04cb42bfbd3 /cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt
parentsecurity/metasploit: Update rubygem-rex-exploitation dependency (diff)
Update to 2.2.0
PR: 245247 Submitted by: teodorsigaev@gmail.com
Diffstat (limited to 'cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt')
-rw-r--r--cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt b/cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt
new file mode 100644
index 000000000000..c346d6a7490a
--- /dev/null
+++ b/cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt
@@ -0,0 +1,20 @@
+--- src/hidapi/CMakeLists.txt.orig 2020-03-21 10:55:51 UTC
++++ src/hidapi/CMakeLists.txt
+@@ -1,8 +1,9 @@
+-
+ if (WIN32)
+ set(HIDAPI_IMPL win/hid.c)
+ elseif (APPLE)
+ set(HIDAPI_IMPL mac/hid.c)
++elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++ set(HIDAPI_IMPL libusb/hid.c)
+ else ()
+ # Assume Linux or Unix other than Mac OS
+ set(HIDAPI_IMPL linux/hid.c)
+@@ -16,4 +17,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ # Don't link the udev library, as there are two versions out there (libudev.so.0, libudev.so.1), so they are linked explicitely.
+ # target_link_libraries(hidapi udev)
+ target_link_libraries(hidapi dl)
++elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++ target_link_libraries(hidapi usb iconv)
+ endif()