Skip to content

Commit

Permalink
Merge pull request #3 from ami-iit/traversaro-patch-1
Browse files Browse the repository at this point in the history
Clarify documentation by mentioning package managers
  • Loading branch information
traversaro authored Nov 15, 2022
2 parents 51772a4 + ecc958a commit 57cb7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CMake/C++ library to get the installation prefix of a shared library in a relocatable way.

In a nutshell, it permits to avoid the need to hardcode the location of `CMAKE_INSTALL_PREFIX` in a shared library if you need it to localize other resources installed with the package. This permits to easily move the installation prefix in a location different from `CMAKE_INSTALL_PREFIX` after the installation (i.e. making it a *relocatable* installation), as long as the library is compiled as shared.
In a nutshell, it permits to avoid the need to hardcode the location of `CMAKE_INSTALL_PREFIX` in a shared library if you need it to localize other resources installed with the package. This permits to easily move the installation prefix in a location different from `CMAKE_INSTALL_PREFIX` after the installation (i.e. making it a *relocatable* installation), as long as the library is compiled as shared. This is useful when the C++ shared library is packaged in package managers that create the package with a given `CMAKE_INSTALL_PREFIX` and install it with a different prefix, such as [conda](https://docs.conda.io), [vcpkg](https://vcpkg.io) or [conan](https://conan.io/).

In the case that the library is compiled as static, `reloc-cpp` will fall back to hardcode `CMAKE_INSTALL_PREFIX` in the library.

Expand Down

0 comments on commit 57cb7fa

Please sign in to comment.