Skip to content

Commit

Permalink
external libusb removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir91 committed Nov 2, 2023
1 parent 851aed5 commit 8671506
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 141 deletions.
38 changes: 0 additions & 38 deletions CMake/external_libusb.cmake

This file was deleted.

9 changes: 4 additions & 5 deletions CMake/libusb_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ if (NOT TARGET usb)
find_library(LIBUSB_LIB usb-1.0)
find_path(LIBUSB_INC libusb.h HINTS PATH_SUFFIXES libusb-1.0)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(usb "libusb not found; using internal version" LIBUSB_LIB LIBUSB_INC)
if (USB_FOUND AND NOT USE_EXTERNAL_USB)
add_library(usb INTERFACE)
find_package_handle_standard_args(usb LIBUSB_LIB LIBUSB_INC)

add_library(usb INTERFACE)
if (USB_FOUND)
target_include_directories(usb INTERFACE ${LIBUSB_INC})
target_link_libraries(usb INTERFACE ${LIBUSB_LIB})
else()
include(CMake/external_libusb.cmake)
endif()
install(TARGETS usb EXPORT realsense2Targets)
endif()
98 changes: 0 additions & 98 deletions third-party/libusb/CMakeLists.txt

This file was deleted.

0 comments on commit 8671506

Please sign in to comment.