aboutsummaryrefslogtreecommitdiff
path: root/ports/libfreenect2/fix-dependency-libusb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libfreenect2/fix-dependency-libusb.patch')
-rw-r--r--ports/libfreenect2/fix-dependency-libusb.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/ports/libfreenect2/fix-dependency-libusb.patch b/ports/libfreenect2/fix-dependency-libusb.patch
new file mode 100644
index 000000000..a5de8f3be
--- /dev/null
+++ b/ports/libfreenect2/fix-dependency-libusb.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1e0d192..aedc576 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -90,7 +90,7 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
+
+ # dependencies
+ FIND_PACKAGE(PkgConfig) # try find PKGConfig as it will be used if found
+-FIND_PACKAGE(LibUSB REQUIRED)
++FIND_PACKAGE(libusb CONFIG REQUIRED)
+
+ # Add includes
+ INCLUDE_DIRECTORIES(
+@@ -98,7 +98,7 @@ INCLUDE_DIRECTORIES(
+ "${MY_DIR}/include/internal"
+ ${PROJECT_BINARY_DIR} # for generated headers
+ ${LIBFREENECT2_THREADING_INCLUDE_DIR}
+- ${LibUSB_INCLUDE_DIRS}
++ ${LIBUSB_INCLUDE_DIRS}
+ )
+
+ SET(RESOURCES_INC_FILE "${PROJECT_BINARY_DIR}/resources.inc.h")
+@@ -154,7 +154,7 @@ SET(SOURCES
+ )
+
+ SET(LIBRARIES
+- ${LibUSB_LIBRARIES}
++ ${LIBUSB_LIBRARIES}
+ ${LIBFREENECT2_THREADING_LIBRARIES}
+ )
+