diff options
author | michael-west <michael.west@ettus.com> | 2019-09-24 17:31:51 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-10-15 15:21:52 -0700 |
commit | 1004eef88e1a695cc0a2f3002bd8aa8b5d22e0e8 (patch) | |
tree | b465531610ef0d8cd99a7b88f9bf375661e562f6 /host/cmake/Modules | |
parent | c2f1f21d415452a6a3a09cd00fc09d0ef1bf7c06 (diff) | |
download | uhd-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/cmake/Modules')
-rw-r--r-- | host/cmake/Modules/UHDVersion.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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") |