Skip to content

Commit

Permalink
Fix asio dependency (#3411)
Browse files Browse the repository at this point in the history
* Fix unnecessary asio dependency

* Remove asio from CMakeList

(cherry picked from commit 3fa1a2b)
  • Loading branch information
JesusPoderoso authored and mergify[bot] committed Mar 29, 2023
1 parent 2eddd4e commit f59bcb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions examples/cpp/dds/DeadlineQoSExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@

#include <fastrtps/Domain.h>
#include <fastrtps/log/Log.h>
#include "asio.hpp"

using namespace eprosima;
using namespace eprosima::fastrtps;
using namespace asio;

/**
* @brief Parses command line arguments
Expand Down

0 comments on commit f59bcb4

Please sign in to comment.