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 --- mpm/cmake/Modules/MPMVersion.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'mpm/cmake/Modules') diff --git a/mpm/cmake/Modules/MPMVersion.cmake b/mpm/cmake/Modules/MPMVersion.cmake index 622892417..d0b744093 100644 --- a/mpm/cmake/Modules/MPMVersion.cmake +++ b/mpm/cmake/Modules/MPMVersion.cmake @@ -29,3 +29,4 @@ else() set(MPM_VERSION "${MPM_VERSION_MAJOR}.${MPM_VERSION_API}.${MPM_VERSION_ABI}.${MPM_VERSION_PATCH}-${MPM_GIT_COUNT}-${MPM_GIT_HASH}") endif() +set(UHD_COMPONENT "MPM") \ No newline at end of file -- cgit v1.2.3