Make the C++ library relocatable when compiled as shared library via reloc-cpp #179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Until now, the C++ library of icub-models was not relocatable (i.e. "It can't be moved across filesystem and be used with no changes to itself or environment", see https://indico.cern.ch/event/848215/contributions/3591953/attachments/1923018/3181752/HSFPackagingRelocation.pdf).
With this PR, the library when compiled as a shared library is relocatable, thanks to the use of https://github.com/ami-iit/reloc-cpp .
This is useful when the package is used in package managers that create the package with a given
CMAKE_INSTALL_PREFIX
and install it with a different prefix, such as conda, vcpkg or conan (see gazebosim/gz-sim#626).Fix in conda-forge/icub-models-feedstock#18 .
Tested in conda-forge/icub-models-feedstock#25 .