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/cmake/Modules/UHDVersion.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/cmake/Modules') diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index 205c2e839..99e898649 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -145,3 +145,5 @@ if(DEFINED UHD_ABI_VERSION) else() set(UHD_ABI_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}") endif() + +set(UHD_COMPONENT "UHD") -- cgit v1.2.3