mirror of https://github.com/PentHertz/srsLTE.git
print srsLTE version name if no git details are found
This commit is contained in:
parent
10469cd3a0
commit
f6f47f0320
|
@ -133,15 +133,16 @@ std::string ue_base::get_build_mode()
|
|||
|
||||
std::string ue_base::get_build_info()
|
||||
{
|
||||
if (std::string(srslte_get_build_info()) == "") {
|
||||
return std::string(srslte_get_version());
|
||||
}
|
||||
return std::string(srslte_get_build_info());
|
||||
}
|
||||
|
||||
std::string ue_base::get_build_string()
|
||||
{
|
||||
std::stringstream ss;
|
||||
if (get_build_mode() != "" && get_build_info() != "") {
|
||||
ss << "Built in " << get_build_mode() << " mode using " << get_build_info() << "." << std::endl;
|
||||
}
|
||||
ss << "Built in " << get_build_mode() << " mode using " << get_build_info() << "." << std::endl;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue