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

Use target_link_libraries everywhere #52

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Jun 28, 2024

No description provided.

ahcorde added 2 commits June 28, 2024 14:47
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde requested a review from john-maidbot July 1, 2024 12:01
@ahcorde ahcorde self-assigned this Jul 1, 2024
Copy link
Collaborator

@john-maidbot john-maidbot left a comment

Choose a reason for hiding this comment

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

Approving since ci builds and passes, but can you please explain the reason for this change?

@@ -36,9 +35,15 @@ add_library(${PROJECT_NAME}
src/manifest.cpp
)

target_link_libraries(${PROJECT_NAME} ${DRACO_LIBRARY})

ament_target_dependencies(${PROJECT_NAME} ${dependencies})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please give motivation for this change? Is ament_target_dependencies deprecated or no longer good practice?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This allows us to mark libraries as PRIVATE, so we can export less to downstream consumers.

@ahcorde ahcorde merged commit 052f9a7 into rolling Jul 1, 2024
4 checks passed
@ahcorde ahcorde deleted the ahcorde/rolling/target_link_libraries branch July 1, 2024 15:49
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