aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/FindLIBUSB.cmake
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2021-05-12 12:51:48 -0400
committerMartin Braun <martin@gnuradio.org>2021-07-06 04:29:55 -0700
commitc1c05e94b61eb4e6935bfb14ddc338afae9d96d1 (patch)
tree34e477b9a6e948d3664a53d3b102fbfcaca83770 /host/cmake/Modules/FindLIBUSB.cmake
parente70b39e57c3fa883e026f60915f17f78513118fd (diff)
downloaduhd-c1c05e94b61eb4e6935bfb14ddc338afae9d96d1.tar.gz
uhd-c1c05e94b61eb4e6935bfb14ddc338afae9d96d1.tar.bz2
uhd-c1c05e94b61eb4e6935bfb14ddc338afae9d96d1.zip
cmake: fix finding PkgConfig to work robustly (without CMake warnings)
Diffstat (limited to 'host/cmake/Modules/FindLIBUSB.cmake')
-rw-r--r--host/cmake/Modules/FindLIBUSB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/cmake/Modules/FindLIBUSB.cmake b/host/cmake/Modules/FindLIBUSB.cmake
index 1ee364d73..9c404f68e 100644
--- a/host/cmake/Modules/FindLIBUSB.cmake
+++ b/host/cmake/Modules/FindLIBUSB.cmake
@@ -3,7 +3,7 @@
#sets LIBUSB_FOUND, LIBUSB_LIBRARIES, LIBUSB_INCLUDE_DIRS
#override LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIRS to manually set
-include(FindPkgConfig)
+find_package(PkgConfig QUIET)
pkg_check_modules(PC_LIBUSB QUIET libusb-1.0)
find_path(LIBUSB_INCLUDE_DIRS