Skip to content

Commit

Permalink
Make hidapi findable on macOS. Fixes #4194 (#4472)
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Dec 27, 2022
1 parent f297112 commit f50aa88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/Modules/FindHidAPI.cmake
@@ -1,12 +1,12 @@
find_package(PkgConfig QUIET)
PKG_CHECK_MODULES(PC_HIDAPI QUIET hidapi-libusb)
find_package(PkgConfig)
pkg_search_module(PC_HIDAPI QUIET hidapi hidapi-libusb)

find_path(HIDAPI_INCLUDE_DIR NAMES hidapi.h
HINTS
${PC_HIDAPI_INCLUDEDIR}
${PC_HIDAPI_INCLUDE_DIRS})

find_library(HIDAPI_LIBRARY NAMES hidapi-libusb
find_library(HIDAPI_LIBRARY NAMES hidapi hidapi-libusb
HINTS
${PC_HIDAPI_LIBDIR}
${PC_HIDAPI_LIBRARY_DIRS})
Expand Down

0 comments on commit f50aa88

Please sign in to comment.