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/lib/version.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/lib/version.cpp') diff --git a/host/lib/version.cpp b/host/lib/version.cpp index f3c268748..016c46a9f 100644 --- a/host/lib/version.cpp +++ b/host/lib/version.cpp @@ -18,3 +18,7 @@ std::string uhd::get_version_string(void){ std::string uhd::get_abi_string(void){ return UHD_VERSION_ABI_STRING; } + +std::string uhd::get_component(void){ + return "@UHD_COMPONENT@"; +} \ No newline at end of file -- cgit v1.2.3