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

Allow to recreate targets created by IgnPkgConfig #231

Merged
merged 2 commits into from
Apr 12, 2022

Conversation

j-rivero
Copy link
Contributor

🦟 Bug fix

Summary

There are problems when we call ign_find_package twice related to the recreation of a CMake target already created by ign_pkg_check_modules_* methods. The PR removes the check that avoid this option.

See gazebosim/gz-rendering#605 for an use case related to this limitation.

I've tested this with a fortress workspace on Focal and everything seems to built. It might be software affected out there but having the ability of calling a ign_find_package twice and recreate an CMake TARGET with updated information seems to me the way to go.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel labels Apr 12, 2022
Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

Looks okay to me. Hopefully this helps unblock gazebosim/gz-rendering#605.

@j-rivero
Copy link
Contributor Author

@osrf-jenkins run tests please

@j-rivero
Copy link
Contributor Author

run another rebuild to Citadel. It built. Merging.

@j-rivero j-rivero merged commit 842d53d into ign-cmake2 Apr 12, 2022
@j-rivero j-rivero deleted the jrivero/allow_dup_target_pkgconfig branch April 12, 2022 20:19
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-releases-2022-04-27-fortress-citadel/1389/1

harshmahesheka pushed a commit to harshmahesheka/ign-cmake that referenced this pull request May 24, 2022
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🏯 fortress Ignition Fortress 🌱 garden Ignition Garden Gazebo 1️1️ Dependency of Gazebo classic version 11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants