Skip to content

Commit

Permalink
change export order for static linking
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Mar 1, 2018
1 parent cba42d5 commit 485c8a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions rmw_fastrtps_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ find_package(rosidl_generator_c REQUIRED)
find_package(rosidl_typesupport_introspection_c REQUIRED)
find_package(rosidl_typesupport_introspection_cpp REQUIRED)

ament_export_dependencies(rcutils)
ament_export_dependencies(rmw)
ament_export_dependencies(rosidl_generator_c)
ament_export_dependencies(rosidl_typesupport_introspection_c)
ament_export_dependencies(rosidl_typesupport_introspection_cpp)

include_directories(include)

add_library(rmw_fastrtps_cpp
Expand Down Expand Up @@ -105,6 +99,12 @@ PRIVATE "RMW_FASTRTPS_CPP_BUILDING_LIBRARY")
ament_export_include_directories(include)
ament_export_libraries(rmw_fastrtps_cpp)

ament_export_dependencies(rosidl_typesupport_introspection_cpp)
ament_export_dependencies(rosidl_typesupport_introspection_c)
ament_export_dependencies(rosidl_generator_c)
ament_export_dependencies(rcutils)
ament_export_dependencies(rmw)

register_rmw_implementation(
"c:rosidl_typesupport_c:rosidl_typesupport_introspection_c"
"cpp:rosidl_typesupport_cpp:rosidl_typesupport_introspection_cpp")
Expand All @@ -115,7 +115,7 @@ if(BUILD_TESTING)
endif()

ament_package(
CONFIG_EXTRAS "rmw_fastrtps_cpp-extras.cmake"
CONFIG_EXTRAS_POST "rmw_fastrtps_cpp-extras.cmake"
)

install(
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/rmw_fastrtps_cpp-extras.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ find_package(fastrtps REQUIRED CONFIG)
find_package(FastRTPS REQUIRED MODULE)

list(APPEND rmw_fastrtps_cpp_INCLUDE_DIRS ${FastRTPS_INCLUDE_DIR})
list(APPEND rmw_fastrtps_cpp_LIBRARIES fastcdr fastrtps)
list(APPEND rmw_fastrtps_cpp_LIBRARIES fastrtps fastcdr)

0 comments on commit 485c8a2

Please sign in to comment.