Skip to content

Commit 4134ce2

Browse files
Fix macOS build (#90)
* Fix dependency of name conversion lib (#81) Signed-off-by: Simon Hoinkis <[email protected]> * Call correct destructor (#81) Signed-off-by: Simon Hoinkis <[email protected]> --------- Signed-off-by: Simon Hoinkis <[email protected]>
1 parent c2348ff commit 4134ce2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

rmw_iceoryx_cpp/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ find_package(rosidl_typesupport_introspection_cpp REQUIRED)
3838
add_library(rmw_iceoryx_serialization SHARED
3939
src/internal/iceoryx_deserialize.cpp
4040
src/internal/iceoryx_serialize.cpp
41+
src/internal/iceoryx_type_info_introspection.cpp
4142
)
4243
target_include_directories(rmw_iceoryx_serialization
4344
PUBLIC include
@@ -50,7 +51,6 @@ ament_target_dependencies(rmw_iceoryx_serialization
5051
)
5152
add_library(rmw_iceoryx_name_conversion SHARED
5253
src/internal/iceoryx_name_conversion.cpp
53-
src/internal/iceoryx_type_info_introspection.cpp
5454
src/internal/iceoryx_topic_names_and_types.cpp
5555
src/internal/iceoryx_get_topic_endpoint_info.cpp
5656
)
@@ -59,6 +59,7 @@ target_include_directories(rmw_iceoryx_name_conversion
5959
)
6060
target_link_libraries(rmw_iceoryx_name_conversion
6161
iceoryx_posh::iceoryx_posh
62+
rmw_iceoryx_serialization
6263
)
6364
ament_target_dependencies(rmw_iceoryx_name_conversion
6465
rcpputils

rmw_iceoryx_cpp/src/rmw_publisher.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ rmw_create_publisher(
131131
if (rmw_publisher) {
132132
if (iceoryx_sender) {
133133
RMW_TRY_DESTRUCTOR_FROM_WITHIN_FAILURE(
134-
iceoryx_sender->~UntypedPublisherImpl(), iox::popo::UntypedPublisher)
134+
iceoryx_sender->~UntypedPublisher(), iox::popo::UntypedPublisher)
135135
rmw_free(iceoryx_sender);
136136
}
137137
if (iceoryx_publisher) {
@@ -198,7 +198,7 @@ rmw_destroy_publisher(rmw_node_t * node, rmw_publisher_t * publisher)
198198
if (iceoryx_publisher) {
199199
if (iceoryx_publisher->iceoryx_sender_) {
200200
RMW_TRY_DESTRUCTOR(
201-
iceoryx_publisher->iceoryx_sender_->~UntypedPublisherImpl(),
201+
iceoryx_publisher->iceoryx_sender_->~UntypedPublisher(),
202202
iceoryx_publisher->iceoryx_sender_,
203203
result = RMW_RET_ERROR)
204204
rmw_free(iceoryx_publisher->iceoryx_sender_);

rmw_iceoryx_cpp/src/rmw_subscription.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ rmw_create_subscription(
130130
if (iceoryx_receiver) {
131131
/// @todo Can we avoid to use the impl here?
132132
RMW_TRY_DESTRUCTOR_FROM_WITHIN_FAILURE(
133-
iceoryx_receiver->~UntypedSubscriberImpl(), iox::popo::UntypedSubscriber)
133+
iceoryx_receiver->~UntypedSubscriber(), iox::popo::UntypedSubscriber)
134134
rmw_free(iceoryx_receiver);
135135
}
136136
if (iceoryx_subscription) {
@@ -216,7 +216,7 @@ rmw_destroy_subscription(
216216
if (iceoryx_subscription->iceoryx_receiver_) {
217217
// @todo Can we avoid to use the impl here?
218218
RMW_TRY_DESTRUCTOR(
219-
iceoryx_subscription->iceoryx_receiver_->~UntypedSubscriberImpl(),
219+
iceoryx_subscription->iceoryx_receiver_->~UntypedSubscriber(),
220220
iceoryx_subscription->iceoryx_receiver_,
221221
result = RMW_RET_ERROR)
222222
rmw_free(iceoryx_subscription->iceoryx_receiver_);

0 commit comments

Comments
 (0)