ROS catkin_make 编译时出现报错 add_custom_target cannot create target “xxxxxxxxxxxxxxxxxxxxxxxxxx” because another target with the same name already exists. The existing target is a custom target created in source directory
1.CMakeLists.txt中find_package(xxxxx)内容与package.xml中bulid_depends不一致
CMakeLists.txt
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
)
package.xml
<buildtool_depend>catkin</buildtool_depend>