aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2019-09-24 17:31:51 -0700
committerMartin Braun <martin.braun@ettus.com>2019-10-15 15:21:52 -0700
commit1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8 (patch)
treeb465531610ef0d8cd99a7b88f9bf375661e562f6 /host/include
parentc2f1f21d415452a6a3a09cd00fc09d0ef1bf7c06 (diff)
downloaduhd-1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8.tar.gz
uhd-1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8.tar.bz2
uhd-1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8.zip
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 <michael.west@ettus.com>
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/version.hpp.in3
1 files changed, 3 insertions, 0 deletions
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