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

FindIgnOGRE2: preserve PKG_CONFIG_PATH #319

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Nov 2, 2022

🦟 Bug fix

Fixes osrf/homebrew-simulation#2115

Summary

While debugging osrf/homebrew-simulation#2115, I noticed that the PKG_CONFIG_PATH environment variable was changing between subsequent iterations of loops in the FindIgnOGRE2 module. The changes in 0381785 should preserve the original PKG_CONFIG_PATH value.

I also backported some fixes to this module from gz-cmake3 (#283 and #297) in 9f1f488:

  • Check the minor version matches.
  • Forward the link directories to be used by RPath.
  • Unset OGRE2_* variables if not found.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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.

The FindIgnOGRE2 module makes changes to PKG_CONFIG_PATH
during the search. These changes ensure that the original
value of this environment variable is restored.

Signed-off-by: Steve Peters <[email protected]>
* Check the minor version matches.
* Forward the link directories to be used by RPath.
* Unset OGRE2_* variables if not found.

Signed-off-by: Steve Peters <[email protected]>
@scpeters scpeters requested a review from mjcarroll November 2, 2022 05:10
@github-actions github-actions bot added 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel labels Nov 2, 2022
@scpeters scpeters merged commit 2c86a11 into ign-cmake2 Nov 3, 2022
@scpeters scpeters deleted the scpeters/find_ogre2_pkg_config branch November 3, 2022 21:45
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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants