gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Use relative install paths for plugin shared libraries and gz-tools data #2358

Closed azeey closed 2 months ago

azeey commented 3 months ago

🦟 Bug fix

Summary

Fixes an error when building https://github.com/gazebo-release/gz_sim_vendor/ in the ROS buildfarm.

Similar to https://github.com/gazebosim/gz-tools/pull/137

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

azeey commented 2 months ago

This can be tested by going into the build directory and running

cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -P cmake_install.cmake

(Make sure to have the latest version of gz-cmake3)