Skip to content

Commit

Permalink
Merge pull request 'Use library paths from pkg-config' (#4) from argi…
Browse files Browse the repository at this point in the history
…lo/rtl-sdr:libusb-pkgconfig into master

Reviewed-on: https://gitea.osmocom.org/sdr/rtl-sdr/pulls/4
  • Loading branch information
Dimitri Stolnikov committed Dec 7, 2023
2 parents 448a655 + c945bd0 commit b85f037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ find_package(PkgConfig)

if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBUSB libusb-1.0 IMPORTED_TARGET)
set(LIBUSB_LIBRARIES "${LIBUSB_LINK_LIBRARIES}")
else()
set(LIBUSB_LIBRARIES "" CACHE STRING "manual libusb path")
set(LIBUSB_INCLUDE_DIRS "" CACHE STRING "manual libusb includepath")
Expand Down

0 comments on commit b85f037

Please sign in to comment.