change export order for static linking (#446)

This commit is contained in:
Dirk Thomas 2018-03-22 16:26:42 -07:00 committed by GitHub
parent 947e3f7e67
commit 5f1fc660ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 15 deletions

View file

@ -25,10 +25,11 @@ add_library(rclcpp_lifecycle
src/state.cpp
src/transition.cpp
)
# specific order: dependents before dependencies
ament_target_dependencies(rclcpp_lifecycle
"lifecycle_msgs"
"rclcpp"
"rcl_lifecycle"
"rclcpp")
"lifecycle_msgs")
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
@ -100,11 +101,12 @@ if(BUILD_TESTING)
endif()
endif()
# specific order: dependents before dependencies
ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})
ament_export_dependencies(rclcpp)
ament_export_dependencies(rcl_lifecycle)
ament_export_dependencies(lifecycle_msgs)
ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})
ament_package()
install(DIRECTORY include/