gazebosim / gz-cmake

A set of CMake modules that are used by the C++-based Gazebo projects.
https://gazebosim.org/libs/cmake
Apache License 2.0
27 stars 31 forks source link

Fix how `ign` compatibility files are copied in windows #419

Closed azeey closed 8 months ago

azeey commented 8 months ago

🦟 Bug fix

Summary

Instead of relying on the installed gz cmake file, we copy the one from the source directory. This avoids relying on an absolute path formed using CMAKE_INSTALL_PREFIX, which doesn't work well when using CMAKE_STAGING_PREFIX.

This is needed to fix windows build failure of gz_cmake_vendor. https://ci.ros2.org/job/ci_windows/21361/console#console-section-25

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.