forked from sdr/rtl-sdr
1
0
Fork 0

Use library paths from pkg-config

Signed-off-by: Clayton Smith <argilo@gmail.com>
This commit is contained in:
Clayton Smith 2023-12-06 21:47:21 -05:00
parent 420086af84
commit c945bd075c
1 changed files with 1 additions and 0 deletions

View File

@ -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")