Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtinyxml absolute path in the cmake export target files #202

Open
aurelien-enchanted-tools opened this issue May 27, 2024 · 1 comment

Comments

@aurelien-enchanted-tools

Hello,
dbecca0
branch humble [I'm not checking with the earlier branches]

The cmake export target files (*.cmake) contain absolute paths to libtinyxml files. Could you fix them to obtain relative paths in cmake export target file. For example, this allows to use them in cross-compilation system with sysroot.

Thanks you in advance.

@jiaxshi
Copy link

jiaxshi commented Jun 28, 2024

I met the same issue with cross compile in meta-ros.
urdfdom version: 3.0.2-2
ROS distro: humble
yocto: kirkstone
In target lib/urdfdom/cmake/urdfdom-config.cmake :

set(urdfdom_INCLUDE_DIRS "${urdfdom_DIR}/../../../include/urdfdom" "/local/mnt3/workspace/jiaxshi/projects/ros_ws/build/tmp-glibc/work/armv8-2a-qcom-linux/urdfdom/3.0.2-2-r0/recipe-sysroot/usr/include")

This is import in https://github.com/ros/urdfdom/blob/humble/cmake/urdfdom-config.cmake.in#6
and urdfdomExprot.cmake

set_target_properties(urdfdom::urdfdom_model PROPERTIES
  INTERFACE_COMPILE_FEATURES "cxx_std_14"
  INTERFACE_INCLUDE_DIRECTORIES "/local/mnt3/workspace/jiaxshi/projects/ros_ws/build/tmp-glibc/work/armv8-2a-qcom-linux/urdfdom/3.0.2-2-r0/recipe-sysroot/usr/include;${_IMPORT_PREFIX}/include/urdfdom"
  INTERFACE_LINK_LIBRARIES "console_bridge::console_bridge;urdfdom_headers::urdfdom_headers;/local/mnt3/workspace/jiaxshi/projects/ros_ws/build/tmp-glibc/work/armv8-2a-qcom-linux/urdfdom/3.0.2-2-r0/recipe-sysroot/usr/lib/libtinyxml.so"
  INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "/local/mnt3/workspace/jiaxshi/projects/ros_ws/build/tmp-glibc/work/armv8-2a-qcom-linux/urdfdom/3.0.2-2-r0/recipe-sysroot/usr/include"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants