Skip to content

Commit 3cc2a0e

Browse files
authored
make sure that plugin arg includes the double colon. (#2878)
Signed-off-by: Tomoya Fujita <[email protected]>
1 parent 5beec9e commit 3cc2a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rclcpp_components/cmake/rclcpp_components_register_node.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ macro(rclcpp_components_register_node target)
5757
message(STATUS "Setting executor non-default value ${executor}")
5858
endif()
5959

60+
if("${ARGS_PLUGIN}" MATCHES "^[^:]+:[^:]+$")
61+
message(FATAL_ERROR "PLUGIN argument '${ARGS_PLUGIN}' appears to be incorrect. (e.g., 'package_name::ClassName').")
62+
endif()
6063
set(component ${ARGS_PLUGIN})
6164
set(node ${ARGS_EXECUTABLE})
6265
_rclcpp_components_register_package_hook()

0 commit comments

Comments
 (0)