Skip to content

Export CMake Targets and make relocatable#22

Open
pascalauroboa wants to merge 2 commits intopal-robotics:humble-develfrom
RoBoa-Robotics:humble-devel
Open

Export CMake Targets and make relocatable#22
pascalauroboa wants to merge 2 commits intopal-robotics:humble-develfrom
RoBoa-Robotics:humble-devel

Conversation

@pascalauroboa
Copy link
Copy Markdown

When building pal_statistics using yocto the generated *Config.cmake files contain absolute paths on the host machine which should not be present when the files are installed onto a target device. This PR makes the exports relocatable and adds modern cmake targets which downstream projects can use like this:

find_package(pal_statistics REQUIRED)

add_library(mylib SHARED ...)

target_link_libraries(mylib PUBLIC pal_statistics::pal_statistics)

Copy link
Copy Markdown
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello!

IMO This should be an issue in the ament_auto library. Please report an issue there and link this PR please

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

Successfully merging this pull request may close these issues.

2 participants