diff --git a/rclcpp_action/CMakeLists.txt b/rclcpp_action/CMakeLists.txt
index 6b84077155..28da8a62e8 100644
--- a/rclcpp_action/CMakeLists.txt
+++ b/rclcpp_action/CMakeLists.txt
@@ -6,7 +6,6 @@ find_package(ament_cmake_ros REQUIRED)
find_package(action_msgs REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rcl_action REQUIRED)
-find_package(rosidl_generator_cpp REQUIRED)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
@@ -33,8 +32,7 @@ ament_target_dependencies(${PROJECT_NAME}
"action_msgs"
"rcl_action"
"rclcpp"
- "rosidl_generator_c"
- "rosidl_generator_cpp")
+)
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
@@ -60,8 +58,6 @@ ament_export_dependencies(ament_cmake)
ament_export_dependencies(action_msgs)
ament_export_dependencies(rclcpp)
ament_export_dependencies(rcl_action)
-ament_export_dependencies(rosidl_generator_c)
-ament_export_dependencies(rosidl_generator_cpp)
if(BUILD_TESTING)
find_package(ament_cmake_gtest REQUIRED)
diff --git a/rclcpp_action/package.xml b/rclcpp_action/package.xml
index 199d6b1371..d62f4491f5 100644
--- a/rclcpp_action/package.xml
+++ b/rclcpp_action/package.xml
@@ -9,12 +9,6 @@
ament_cmake_ros
- rosidl_generator_cpp
- rosidl_generator_c
-
- rosidl_generator_c
- rosidl_generator_cpp
-
action_msgs
rclcpp
rcl_action