From 6a625bdba6d6b7de0c7182f28755ed476cb1e55b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 23 Nov 2021 17:13:58 +0100 Subject: [PATCH] Fix linking against GNU Radio master --- src/algorithms/telemetry_decoder/adapters/CMakeLists.txt | 8 -------- .../telemetry_decoder/gnuradio_blocks/CMakeLists.txt | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/algorithms/telemetry_decoder/adapters/CMakeLists.txt b/src/algorithms/telemetry_decoder/adapters/CMakeLists.txt index 12c3e8a25..a374f25d0 100644 --- a/src/algorithms/telemetry_decoder/adapters/CMakeLists.txt +++ b/src/algorithms/telemetry_decoder/adapters/CMakeLists.txt @@ -64,14 +64,6 @@ target_link_libraries(telemetry_decoder_adapters Gnuradio::runtime ) -if(GNURADIO_USES_SPDLOG) - target_link_libraries(telemetry_decoder_adapters - PUBLIC - fmt::fmt - spdlog::spdlog - ) -endif() - target_include_directories(telemetry_decoder_adapters PUBLIC ${CMAKE_SOURCE_DIR}/src/core/interfaces diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/CMakeLists.txt b/src/algorithms/telemetry_decoder/gnuradio_blocks/CMakeLists.txt index d1858d7ef..b47f56187 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/CMakeLists.txt +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/CMakeLists.txt @@ -67,6 +67,14 @@ if(GNURADIO_USES_STD_POINTERS) ) endif() +if(GNURADIO_USES_SPDLOG) + target_link_libraries(telemetry_decoder_gr_blocks + PUBLIC + fmt::fmt + spdlog::spdlog + ) +endif() + target_include_directories(telemetry_decoder_gr_blocks PUBLIC ${CMAKE_SOURCE_DIR}/src/core/interfaces