1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-03 15:18:08 +00:00

Fixes for building against GNU Radio master

Log4cpp has been replaced by spdlog and fmt
This commit is contained in:
Carles Fernandez
2021-11-23 16:38:50 +01:00
parent cc38d6bc08
commit bcec8331e6
19 changed files with 303 additions and 1 deletions

View File

@@ -397,15 +397,22 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
if(EXISTS "${GNURADIO_RUNTIME_INCLUDE_DIRS}/gnuradio/logger.h")
file(STRINGS ${GNURADIO_RUNTIME_INCLUDE_DIRS}/gnuradio/logger.h _logger_content)
set(_uses_log4cpp FALSE)
set(_uses_spdlog FALSE)
foreach(_loop_var IN LISTS _logger_content)
string(STRIP "${_loop_var}" _file_line)
if("#include <log4cpp/Category.hh>" STREQUAL "${_file_line}")
set(_uses_log4cpp TRUE)
endif()
if("#include <spdlog/common.h>" STREQUAL "${_file_line}")
set(_uses_spdlog TRUE)
endif()
endforeach()
if(${_uses_log4cpp})
set(GNURADIO_USES_LOG4CPP TRUE)
endif()
if(${_uses_spdlog})
set(GNURADIO_USES_SPDLOG TRUE)
endif()
endif()
endif()