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

Unify Python3_Development_FOUND checks #1541

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

scpeters
Copy link
Member

🦟 Bug fix

Fixes hidden warnings when python development libraries are not found, port of gazebosim/gz-transport#565

Summary

The value of Python3_Development_FOUND may change if other code paths call find_package(Python3), so move the warning to be co-located with the add_subdirectory call. Otherwise python bindings may be silently ignored.

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 value of this variable may change if other code paths
call find_package(Python3), so move the warning to be
co-located with the add_subdirectory call.

Signed-off-by: Steve Peters <[email protected]>
@scpeters scpeters requested a review from azeey as a code owner February 11, 2025 00:33
@github-actions github-actions bot added 🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty labels Feb 11, 2025
@scpeters scpeters merged commit 25c4dc0 into sdf15 Feb 14, 2025
18 checks passed
@scpeters scpeters deleted the scpeters/unhide_find_python_cmake_warning branch February 14, 2025 21:57
@scpeters
Copy link
Member Author

oops, I didn't wait for review, apologies

@scpeters
Copy link
Member Author

https://github.com/Mergifyio backport sdf14

Copy link
Contributor

mergify bot commented Feb 26, 2025

backport sdf14

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 26, 2025
The value of this variable may change if other code paths
call find_package(Python3), so move the warning to be
co-located with the add_subdirectory call.

Signed-off-by: Steve Peters <[email protected]>
(cherry picked from commit 25c4dc0)
scpeters added a commit that referenced this pull request Feb 26, 2025
The value of this variable may change if other code paths
call find_package(Python3), so move the warning to be
co-located with the add_subdirectory call.

Signed-off-by: Steve Peters <[email protected]>
(cherry picked from commit 25c4dc0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant