From 6da8c7f9ec62d28019c8c001f164ae0a1a0d7559 Mon Sep 17 00:00:00 2001 From: Michael Reifenberger Date: Sun, 5 Apr 2020 11:46:17 +0000 Subject: Update to 2.2.0 PR: 245247 Submitted by: teodorsigaev@gmail.com --- .../files/patch-src_hidapi_CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt (limited to 'cad/PrusaSlicer/files/patch-src_hidapi_CMakeLists.txt') 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() -- cgit v1.2.3