diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-04-15 15:05:55 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-17 14:39:41 -0500 |
commit | 1a7f55f3bd1db83e2d9b2b2f3b0c2f8f5f5b60e3 (patch) | |
tree | 802ad12a52d367677e4a8a3aa28fb60b6aa1d1ba | |
parent | a55fec421204634edfd74ba839188dd061587024 (diff) | |
download | uhd-1a7f55f3bd1db83e2d9b2b2f3b0c2f8f5f5b60e3.tar.gz uhd-1a7f55f3bd1db83e2d9b2b2f3b0c2f8f5f5b60e3.tar.bz2 uhd-1a7f55f3bd1db83e2d9b2b2f3b0c2f8f5f5b60e3.zip |
utils: Add --lib-path option to uhd_config_info
This will print the path to the UHD library using get_lib_path().
-rw-r--r-- | host/utils/uhd_config_info.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |