Skip to content

Commit

Permalink
Fixes environment hooks.
Browse files Browse the repository at this point in the history
Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
  • Loading branch information
francocipollone committed Jul 1, 2022
1 parent c27b607 commit 1e2a943
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 87 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ endif()
# Export
##############################################################################

ament_environment_hooks(setup.sh.in)
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/${PROJECT_NAME}.dsv.in")
ament_environment_hooks("${CMAKE_CURRENT_SOURCE_DIR}/env-hooks/${PROJECT_NAME}.sh.in")

install(
DIRECTORY include/
Expand Down
1 change: 1 addition & 0 deletions env-hooks/maliput_dragway.dsv.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prepend-non-duplicate;MALIPUT_PLUGIN_PATH;lib/maliput_plugins
1 change: 1 addition & 0 deletions env-hooks/maliput_dragway.sh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ament_prepend_unique_value MALIPUT_PLUGIN_PATH "$AMENT_CURRENT_PREFIX/lib/maliput_plugins"
84 changes: 0 additions & 84 deletions setup.sh.in

This file was deleted.

2 changes: 1 addition & 1 deletion src/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ target_include_directories(road_network
# Using a different location as this target is a dynamic library
# which will be loaded in runtime as a maliput plugin.
set(PLUGIN_INSTALL_DIR
lib/plugins
lib/maliput_plugins
)

install(
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ macro(add_dependencies_to_test target)
ENABLE_EXPORTS ON
)

set(ROAD_NETWORK_PLUGIN ${CMAKE_INSTALL_PREFIX}/lib/plugins/)
set(ROAD_NETWORK_PLUGIN ${CMAKE_INSTALL_PREFIX}/lib/maliput_plugins/)
target_compile_definitions(${target}
PRIVATE
DEF_ROAD_NETWORK_PLUGIN="${ROAD_NETWORK_PLUGIN}"
Expand Down

0 comments on commit 1e2a943

Please sign in to comment.