From 1a7f55f3bd1db83e2d9b2b2f3b0c2f8f5f5b60e3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 15 Apr 2020 15:05:55 -0700 Subject: utils: Add --lib-path option to uhd_config_info This will print the path to the UHD library using get_lib_path(). --- host/utils/uhd_config_info.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/host/utils/uhd_config_info.cpp b/host/utils/uhd_config_info.cpp index 784ca9ff2..2d892ff47 100644 --- a/host/utils/uhd_config_info.cpp +++ b/host/utils/uhd_config_info.cpp @@ -29,6 +29,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) ("boost-version", "Print Boost version") ("libusb-version", "Print libusb version") ("pkg-path", "Print pkg path") + ("lib-path", "Print library path") ("images-dir", "Print images dir") ("abi-version", "Print ABI version string") ("print-all", "Print everything") @@ -82,6 +83,9 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) std::cout << "Libusb version: " << (_libusb_version.empty() ? "N/A" : _libusb_version) << std::endl; } + if (vm.count("lib-path") > 0 or print_all) { + std::cout << "Library path: " << uhd::get_lib_path() << std::endl; + } if (vm.count("pkg-path") > 0 or print_all) { std::cout << "Package path: " << uhd::get_pkg_path() << std::endl; } -- cgit v1.2.3