From d3a406dcfa88f59898cdd326834fd73aba1ae107 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 30 Mar 2023 16:52:51 +0200 Subject: [PATCH] Fix asio dependency (#3414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix unnecessary asio dependency * Remove asio from CMakeList (cherry picked from commit 3fa1a2b399f0f55e0abaec7f6ab5c161a7696dbf) Co-authored-by: Jesús Poderoso <120394830+JesusPoderoso@users.noreply.github.com> --- examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt | 7 ------- .../dds/DeadlineQoSExample/deadlinepayloadPubSubMain.cxx | 2 -- 2 files changed, 9 deletions(-) diff --git a/examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt b/examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt index b69608e55cd..082e85d68f9 100644 --- a/examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt +++ b/examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt @@ -29,10 +29,6 @@ if(NOT fastrtps_FOUND) find_package(fastrtps REQUIRED) endif() -if(NOT Asio_FOUND) - find_package(Asio QUIET) -endif() - #Check C++11 include(CheckCXXCompilerFlag) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") @@ -47,12 +43,9 @@ file(GLOB DDS_DEADLINEQOS_EXAMPLE_SOURCES "*.cxx") add_executable(DDSDeadlineQoSExample ${DDS_DEADLINEQOS_EXAMPLE_SOURCES}) target_compile_definitions(DDSDeadlineQoSExample PRIVATE - BOOST_ASIO_STANDALONE - ASIO_STANDALONE $<$>,$>:__DEBUG> $<$:__INTERNALDEBUG> # Internal debug activated. ) -target_include_directories(DDSDeadlineQoSExample PRIVATE ${Asio_INCLUDE_DIR}) target_link_libraries(DDSDeadlineQoSExample fastrtps fastcdr foonathan_memory) if(UNIX AND NOT(QNXNTO) AND NOT(ANDROID)) target_link_libraries(DDSDeadlineQoSExample pthread) diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubMain.cxx b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubMain.cxx index e2c636b2c02..e47cbdda0c6 100644 --- a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubMain.cxx +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadPubSubMain.cxx @@ -18,11 +18,9 @@ #include #include -#include "asio.hpp" using namespace eprosima; using namespace eprosima::fastrtps; -using namespace asio; /** * @brief Parses command line arguments