yuzu/externals/vcpkg/ports/libfreenect2/fix-dependency-libusb.patch

32 lines
826 B
Diff
Raw Normal View History

2022-07-23 05:01:36 +04:00
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}
)