Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FindLIBUSB.cmake for Windows and FreeBSD builds #27

Closed
wants to merge 2 commits into from

Conversation

lurch
Copy link
Contributor

@lurch lurch commented Apr 30, 2021

Based on a modified version of the suggestions in https://www.raspberrypi.org/forums/viewtopic.php?p=1854531

EDIT: And #29

@kilograham kilograham added this to the 1.1.0 milestone May 15, 2021
@kilograham kilograham self-assigned this May 15, 2021
@lurch lurch changed the title Fix FindLIBUSB.cmake for Windows builds Fix FindLIBUSB.cmake for Windows and FreeBSD builds May 15, 2021
Comment on lines +24 to 26
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb usb-1.0 libusb-1.0
HINTS $ENV{LIBUSB_ROOT}/VS2019/MS32/static
PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kilograham Looking at https://cmake.org/cmake/help/latest/command/find_library.html have I actually got HINTS and PATHS the wrong way around?
i.e. does the usage of ${PC_LIBUSB_LIBDIR} count as "computed by system introspection" meaning that it ought to use the HINTS option; and does the usage of $ENV{LIBUSB_ROOT} count as a "hard-coded guess" meaning that it ought to use the PATHS option?

@kilograham
Copy link
Contributor

fixed via other PR

@kilograham kilograham closed this Oct 5, 2021
@lurch lurch deleted the patch-2 branch October 5, 2021 23:48
@lurch
Copy link
Contributor Author

lurch commented Oct 6, 2021

fixed via other PR

Fixed via 757f2ae 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants