Skip to content

Commit

Permalink
add library_path env hook (#183)
Browse files Browse the repository at this point in the history
* add library_path env hook

* add comment
  • Loading branch information
dirk-thomas committed Oct 17, 2017
1 parent 082f5b3 commit 0c2fa6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions composition/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ ament_target_dependencies(client_component
rclcpp_register_node_plugins(client_component "composition::Client")
set(node_plugins "${node_plugins}composition::Client;$<TARGET_FILE:client_component>\n")

# since the package installs libraries without exporting them
# it needs to make sure that the library path is being exported
if(NOT WIN32)
ament_environment_hooks(
"${ament_cmake_package_templates_ENVIRONMENT_HOOK_LIBRARY_PATH}")
endif()

add_executable(manual_composition
src/manual_composition.cpp)
target_link_libraries(manual_composition
Expand Down

0 comments on commit 0c2fa6b

Please sign in to comment.