Skip to content

Commit

Permalink
Still check LIBUSB_ROOT if pkgconfig libusb not found
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Sep 9, 2024
1 parent dd54102 commit 26bcf6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/FindLIBUSB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)

if (PKG_CONFIG_FOUND)
pkg_check_modules(PC_LIBUSB libusb-1.0)
else ()
endif()

if (NOT PC_LIBUSB_FOUND)
# As the pkg-config was not found we are probably building under windows.
# Determine the architecture of the host, to choose right library
if (NOT DEFINED ARCHITECTURE)
Expand Down

0 comments on commit 26bcf6b

Please sign in to comment.