ros-drivers / rosserial

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

Fix CMP0038 warning on CMake >= 3.0 #553

Closed VasilyF closed 3 years ago

VasilyF commented 3 years ago

As of CMake 3.0 targets may not link to themselves when calling target_link_libraries (policy CMP0038), doing so will raise a warning and ignore targets linking to themselves. Trying to build on noetic, this is reported as an error.

Fix reflects PR to source: https://github.com/queezythegreat/arduino-cmake/pull/143

mikepurvis commented 3 years ago

Looks reasonable, thanks.