mirror of https://github.com/PentHertz/srsLTE.git
fix build string for builds without valid .git folder
This commit is contained in:
parent
777f5b22dc
commit
a436baed39
|
@ -364,7 +364,7 @@ std::string enb::get_build_mode()
|
|||
|
||||
std::string enb::get_build_info()
|
||||
{
|
||||
if (std::string(srslte_get_build_info()) == "") {
|
||||
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
|
||||
return std::string(srslte_get_version());
|
||||
}
|
||||
return std::string(srslte_get_build_info());
|
||||
|
|
|
@ -336,7 +336,7 @@ std::string get_build_mode()
|
|||
|
||||
std::string get_build_info()
|
||||
{
|
||||
if (std::string(srslte_get_build_info()) == "") {
|
||||
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
|
||||
return std::string(srslte_get_version());
|
||||
}
|
||||
return std::string(srslte_get_build_info());
|
||||
|
|
|
@ -133,7 +133,7 @@ std::string ue_base::get_build_mode()
|
|||
|
||||
std::string ue_base::get_build_info()
|
||||
{
|
||||
if (std::string(srslte_get_build_info()) == "") {
|
||||
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
|
||||
return std::string(srslte_get_version());
|
||||
}
|
||||
return std::string(srslte_get_build_info());
|
||||
|
|
Loading…
Reference in New Issue