picotool icon indicating copy to clipboard operation
picotool copied to clipboard

[BUG] FindLIBUSB.cmake points to an old include and library paths

Open NickAlvar91 opened this issue 3 years ago • 0 comments

The findLIBUSB.cmake file points to folders that existed in "libusb-1.0.24"

FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h
       ***HINTS $ENV{LIBUSB_ROOT}/include/libusb-1.0***
       PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES libusb-1.0 usb-1.0 usb
       ***HINTS $ENV{LIBUSB_ROOT}/VS2019/MS32/static***

libusb1.0.24 path to "libusb-1.0.lib" ( $ENV{LIBUSB_ROOT}/VS2019/MS32/static) image

libusb1.0.24 path to "libusb.h" ($ENV{LIBUSB_ROOT}/include/libusb-1.0) image

In the version 1.0.26 (as of June 6, 2022)

  • folder structure has changed version libusb1.0.24 image current version (libusb1.0.26) image

  • libusb.h file is now in each sub directory image

  • VS2019 removed and libusb-1.0.lib under VS2015-win32 image

NickAlvar91 avatar Jun 10 '22 04:06 NickAlvar91