vmatos / rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial
0 stars 0 forks source link

CMake warning on non-existent dependency #1

Closed vmatos closed 8 years ago

vmatos commented 8 years ago
CMake Warning (dev) at /home/vmatos/ros/rosserial_ws/install/share/rosserial_client/cmake/rosserial_client-extras.cmake:31 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "rosserial_msgs_genpy" of target
  "rosserial_tivac_tutorials_ros_lib" does not exist.
Call Stack (most recent call first):
  rosserial_tivac_tutorials/CMakeLists.txt:26 (rosserial_generate_ros_lib)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/vmatos/ros/rosserial_ws/install/share/rosserial_client/cmake/rosserial_client-extras.cmake:31 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  The dependency target "std_msgs_genpy" of target
  "rosserial_tivac_tutorials_ros_lib" does not exist.
Call Stack (most recent call first):
  rosserial_tivac_tutorials/CMakeLists.txt:26 (rosserial_generate_ros_lib)
This warning is for project developers.  Use -Wno-dev to suppress it.

In function rosserial_generate_ros_lib, is added two dependencies for the rosserial_client project. In my tutorials they are non existent.

vmatos commented 8 years ago

Seems genmsgs package has changed the naming of dependencies. From: add_dependencies(${PROJECT_NAME}_ros_lib rosserial_msgs_genpy std_msgs_genpy) To: add_dependencies(${PROJECT_NAME}_ros_lib rosserial_msgs_generate_messages_py std_msgs_generate_messages_py)