uhd/host/lib/version.cpp
michael-west 1004eef88e 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>
2019-10-15 15:21:52 -07:00

24 lines
No EOL
520 B
C++

//
// Copyright 2010-2012 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#include <uhd/version.hpp>
#include <uhd/utils/static.hpp>
#include <uhd/utils/log.hpp>
#include <boost/version.hpp>
#include <iostream>
std::string uhd::get_version_string(void){
return "@UHD_VERSION@";
}
std::string uhd::get_abi_string(void){
return UHD_VERSION_ABI_STRING;
}
std::string uhd::get_component(void){
return "@UHD_COMPONENT@";
}