Target "xxx" requests linking to directory "xxx". Targets may link only to libraries. CMake is dropping the item.

asked 2019-12-09 04:05:16 -0600

uestclx gravatar image

Hi all,

I'm cross-compiling some ROS packages and my own applications on a Ubuntu1804 machine, and the target platform is ARM.

I met below warning, but the build seems successful.

WARNING: Target "rosbag" requests linking to directory "/data/platform/sdk/prebuild/third-party/armv8-a/bzip2/usr/lib".  Targets may link only to libraries.  CMake is dropping the item.

Anyone has encountered this before? What might be the problem?

Thanks a lot.

edit retag flag offensive close merge delete