Pinocchio version: from 2.7.0 and previous to the current.
Bug description
In the case of cross-compilation with sysroot, cmake export generated files have bad paths to be imported into another project. This doesn't allow to link to it when you import it as dependence in another project.
But it is not enough, in your sources you have another place where lib paths are forced as absolute. My current workaround is to modify manually the generate export files after build of pinocchio to allow to use it as dependence in another project, this files are:
[…]/pkgconfig/pinocchio.pc
[…]/cmake/pinocchio/pinocchioConfig.cmake
[…]/cmake/pinocchio/pinocchioTargets.cmake
Please fix also the cmake file which generates them.
Bug description
In the case of cross-compilation with sysroot, cmake export generated files have bad paths to be imported into another project. This doesn't allow to link to it when you import it as dependence in another project.
Expected behavior
Cmake exports have to allow to cross-compilation with sysroot. (cf. for more description and an example https://github.com/humanoid-path-planner/hpp-fcl/issues/542#issuecomment-1979026071 ). Paths have to be relatives.
Code
Please first fix the following
But it is not enough, in your sources you have another place where lib paths are forced as absolute. My current workaround is to modify manually the generate export files after build of pinocchio to allow to use it as dependence in another project, this files are:
Please fix also the cmake file which generates them.
Thank you in advance