Remove absolute path from installed CMake code (#948)
Otherwise, rclcpp_components_register_node() fails if used from a fat archive. Related to https://github.com/ros2/ros2/issues/606. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
This commit is contained in:
parent
afbdfc1dec
commit
0c66d0c725
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ macro(_rclcpp_components_register_package_hook)
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
set(@PROJECT_NAME@_NODE_TEMPLATE "@CMAKE_INSTALL_PREFIX@/@node_main_template_install_dir@/node_main.cpp.in")
|
get_filename_component(@PROJECT_NAME@_SHARE_DIR "${@PROJECT_NAME@_DIR}" DIRECTORY)
|
||||||
|
set(@PROJECT_NAME@_NODE_TEMPLATE "${@PROJECT_NAME@_SHARE_DIR}/node_main.cpp.in")
|
||||||
|
|
||||||
include("${rclcpp_components_DIR}/rclcpp_components_register_nodes.cmake")
|
include("${rclcpp_components_DIR}/rclcpp_components_register_nodes.cmake")
|
||||||
include("${rclcpp_components_DIR}/rclcpp_components_register_node.cmake")
|
include("${rclcpp_components_DIR}/rclcpp_components_register_node.cmake")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue