sensor_msgs_LIBRARIES has ~2000 entries
Distro: Humble on 22.04
I'm seeing weird behavior, and I don't quite know what is going on.
With this tiny CMakeLists.txt:
cmake_minimum_required(VERSION 3.8)
project(weird)
find_package(sensor_msgs REQUIRED)
message(STATUS "${sensor_msgs_LIBRARIES}")
I'm seeing ~2000 entries in sensor_msgs_LIBRARIES
:
$ mkdir build
$ cd build
$ cmake .. | sed 's/;/\n/g' | wc
2018 2060 112941
The libraries appear to be repeating ~30 times.
If l look at std_msgs_LIBRARIES
I see ~900 entries, with libraries repeating ~28 times. E.g., here is the first section:
-- Found std_msgs: 4.2.2 (/opt/ros/humble/share/std_msgs/cmake)
-- Found rosidl_generator_c: 3.1.4 (/opt/ros/humble/share/rosidl_generator_c/cmake)
-- Found rosidl_adapter: 3.1.4 (/opt/ros/humble/share/rosidl_adapter/cmake)
-- Found rosidl_generator_cpp: 3.1.4 (/opt/ros/humble/share/rosidl_generator_cpp/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c
rosidl_typesupport_introspection_c
-- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp
rosidl_typesupport_introspection_cpp
-- rosidl_typesupport_c::rosidl_typesupport_c
/opt/ros/humble/lib/librcutils.so
dl
/opt/ros/humble/lib/librcpputils.so
/opt/ros/humble/lib/librosidl_typesupport_c.so
/opt/ros/humble/lib/librosidl_typesupport_cpp.so
/opt/ros/humble/lib/librosidl_runtime_c.so
/opt/ros/humble/lib/librosidl_typesupport_introspection_c.so
/opt/ros/humble/lib/librosidl_typesupport_introspection_cpp.so
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_generator_c.so
rcutils::rcutils
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_c.so
rosidl_typesupport_fastrtps_c::rosidl_typesupport_fastrtps_c
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_introspection_c.so
rosidl_typesupport_introspection_c::rosidl_typesupport_introspection_c
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_c.so
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_fastrtps_cpp.so
fastcdr
rmw::rmw
rosidl_runtime_cpp::rosidl_runtime_cpp
rosidl_typesupport_fastrtps_cpp::rosidl_typesupport_fastrtps_cpp
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_introspection_cpp.so
rosidl_runtime_c::rosidl_runtime_c
rosidl_typesupport_interface::rosidl_typesupport_interface
rosidl_typesupport_introspection_cpp::rosidl_typesupport_introspection_cpp
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_typesupport_cpp.so
builtin_interfaces::builtin_interfaces__rosidl_generator_cpp
/opt/ros/humble/lib/libbuiltin_interfaces__rosidl_generator_py.so
builtin_interfaces::builtin_interfaces__rosidl_generator_c
/usr/lib/x86_64-linux-gnu/libpython3.10.so
builtin_interfaces::builtin_interfaces__rosidl_typesupport_c
rosidl_typesupport_c::rosidl_typesupport_c
/opt/ros/humble/lib/librcutils.so
dl
(repeats)
I have run this on several machines. Any ideas?