From 1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8 Mon Sep 17 00:00:00 2001 From: michael-west Date: Tue, 24 Sep 2019 17:31:51 -0700 Subject: cmake: Add UHD_COMPONENT variable Added cmake variable to set the component (currently UHD or MPM). so the banner printed by the log_resource would reference the correct component. Added accessor function and appropriate calls in log.cpp. Signed-off-by: michael-west --- host/include/uhd/version.hpp.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/version.hpp.in b/host/include/uhd/version.hpp.in index 0179821da..41abe99e9 100644 --- a/host/include/uhd/version.hpp.in +++ b/host/include/uhd/version.hpp.in @@ -35,6 +35,9 @@ namespace uhd{ //! Get the ABI compatibility string for this build of the library UHD_API std::string get_abi_string(void); + //! Get the component string + UHD_API std::string get_component(void); + } //namespace uhd #endif -- cgit v1.2.3