Warnings << octomap_ros:cmake /home/ap/catkin_ws/logs/octomap_ros/build.cmake.000.log
CMake Warning (dev) at CMakeLists.txt:23 (add_library):
Policy CMP0038 is not set: Targets may not link directly to themselves.
Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Target "octomap_ros" links to itself.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:23 (add_library):
Policy CMP0038 is not set: Targets may not link directly to themselves.
Run "cmake --help-policy CMP0038" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Target "octomap_ros" links to itself.
This warning is for project developers. Use -Wno-dev to suppress it.
$ catkin lint -W2 --pkg octomap_ros
octomap_ros: CMakeLists.txt(7): error: catkin_package() lists 'sensor_msgs' as system package but it is not
octomap_ros: CMakeLists.txt(7): error: catkin_package() lists 'tf' as system package but it is not
octomap_ros: CMakeLists.txt(7): error: catkin_package() lists 'octomap_msgs' as system package but it is not
octomap_ros: CMakeLists.txt(7): error: catkin_package() exports non-package include path
octomap_ros: package.xml: error: build_depend 'catkin' should be a buildtool_depend
octomap_ros: CMakeLists.txt(7): warning: package 'sensor_msgs' should be listed in catkin_package()
octomap_ros: CMakeLists.txt(7): warning: package 'octomap_msgs' should be listed in catkin_package()
octomap_ros: CMakeLists.txt(13): warning: use of link_directories() is strongly discouraged
octomap_ros: CMakeLists.txt(17): warning: use of link_directories() is strongly discouraged
octomap_ros: CMakeLists.txt(4): notice: list COMPONENTS should be sorted
octomap_ros: CMakeLists.txt(7): notice: list DEPENDS should be sorted
octomap_ros: CMakeLists.txt(28): notice: use ${PROJECT_NAME} instead of 'octomap_ros'
catkin_lint: checked 1 packages and found 12 problems
I have a tentative PR ready.