Skip to content

Commit

Permalink
make pkg-config alo look also for hidapi
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Aug 18, 2021
1 parent fda9065 commit fccfc4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/Findhidapi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The following cache variables may also be set:

find_package(PkgConfig QUIET)
if(PkgConfig_FOUND)
pkg_check_modules(PC_hidapi QUIET hidapi-libusb)
pkg_check_modules(PC_hidapi QUIET hidapi-libusb hidapi)
endif()

find_path(hidapi_INCLUDE_DIR
Expand All @@ -72,7 +72,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux)
endif()

# Version detection
if(DEFINED PC_hidapi_VERSION)
if(PC_hidapi_VERSION)
set(hidapi_VERSION "${PC_hidapi_VERSION}")
else()
if (EXISTS "${hidapi_INCLUDE_DIR}/hidapi.h")
Expand Down

0 comments on commit fccfc4e

Please sign in to comment.