diff --git a/cmake/Modules/FindGNURADIO.cmake b/cmake/Modules/FindGNURADIO.cmake index 9e03fdae8..9d6926e36 100644 --- a/cmake/Modules/FindGNURADIO.cmake +++ b/cmake/Modules/FindGNURADIO.cmake @@ -419,7 +419,7 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS) if(CMAKE_VERSION VERSION_GREATER 3.13) target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp) else() - set(LOG4CPP_WITH_OLD_CMAKE TRUE) + set_target_properties(Gnuradio::filter PROPERTIES INTERFACE_LINK_LIBRARIES Log4cpp::log4cpp) endif() endif() if(${_uses_spdlog}) @@ -431,8 +431,13 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS) TYPE REQUIRED ) set(GNURADIO_USES_SPDLOG TRUE) - target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog) - target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog) + if(CMAKE_VERSION VERSION_GREATER 3.13) + target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog) + target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog) + else() + set_target_properties(Gnuradio::runtime PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog) + set_target_properties(Gnuradio::blocks PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog) + endif() endif() endif() endif() diff --git a/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc b/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc index 8da16d190..ca4ac6fbd 100644 --- a/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc +++ b/src/algorithms/PVT/libs/monitor_ephemeris_udp_sink.cc @@ -58,11 +58,10 @@ bool Monitor_Ephemeris_Udp_Sink::write_galileo_ephemeris(const std::shared_ptr& for (const auto& endpoint : endpoints) { socket.open(endpoint.protocol(), error); - socket.connect(endpoint, error); try { - if (socket.send(boost::asio::buffer(outbound_data)) == 0) + if (socket.send_to(boost::asio::buffer(outbound_data), endpoint) == 0) { std::cerr << "Gnss_Synchro_Udp_Sink sent 0 bytes\n"; }