diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ef8be3059df5935b63f0f2fc649687a5796a967..38a6a895c5c0db458c55144f42a9722af4c84a3f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,6 @@ project(intro_package)
 ## is used, also find other catkin packages
 find_package(catkin REQUIRED COMPONENTS
     roscpp
-    std_msgs
     moveit_ros_planning_interface
 )
 
diff --git a/package.xml b/package.xml
index cdee73a19eedb1c4a769f7090506937e0802a0d6..4f6d99469fedf9d00efed3386b83f8974030506f 100644
--- a/package.xml
+++ b/package.xml
@@ -52,6 +52,7 @@
 
   <depend>roscpp</depend>
   <depend>std_msgs</depend>
+  <depend>moveit_ros_planning_interface</depend>
 
   <!-- The export tag contains other, unspecified, tags -->
   <export>