moveit / srdfdom

Semantic Robot Description Format
BSD 3-Clause "New" or "Revised" License
13 stars 68 forks source link

[fix] export cmake library install #76

Closed tylerjw closed 3 years ago

tylerjw commented 3 years ago

This fixes an issue with the cmake install that causes problems when using this in an underlay workspace.

When you build this in an underlay and then try to build the overlay repo where something depends on it you get an error like this:

--- stderr: moveit_core                          
moveit_core: You did not request a specific build type: Choosing 'Release' for maximum performance
CMake Error at /opt/underlay_ws/install/srdfdom/share/srdfdom/cmake/ament_cmake_export_libraries-extras.cmake:48 (message):
  Package 'srdfdom' exports the library 'srdfdom' which couldn't be found

Documentation reference: https://index.ros.org/doc/ros2/Tutorials/Ament-CMake-Documentation/

tylerjw commented 3 years ago

I think it is done by ament_package, because this change fixes the build error I saw.