Skip to content

Unify Python3_Development_FOUND checks#663

Merged
scpeters merged 2 commits intogz-math7from
scpeters/unhide_find_python_cmake_warning_7
Mar 1, 2025
Merged

Unify Python3_Development_FOUND checks#663
scpeters merged 2 commits intogz-math7from
scpeters/unhide_find_python_cmake_warning_7

Conversation

@scpeters
Copy link
Copy Markdown
Member

🦟 Bug fix

Fixes hidden warnings when python development libraries are not found, backport of #662

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 <scpeters@openrobotics.org>
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Feb 10, 2025
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters
Copy link
Copy Markdown
Member Author

I opened #665 to test CI with prereleases, and it has the same commit hashes, so it is rewriting the build status

if these CI checks pass, then we know the cmake warning will be fixed by the next gz-cmake3 stable release

@scpeters
Copy link
Copy Markdown
Member Author

I opened #665 to test CI with prereleases, and it has the same commit hashes, so it is rewriting the build status

if these CI checks pass, then we know the cmake warning will be fixed by the next gz-cmake3 stable release

fixed! I will merge this, when we are ready for a stable release of gz-cmake3

@scpeters
Copy link
Copy Markdown
Member Author

@osrf-jenkins run tests please

@scpeters
Copy link
Copy Markdown
Member Author

scpeters commented Mar 1, 2025

CI is fixed now that gazebosim/gz-cmake#473 has been released, merging

@scpeters scpeters merged commit 5a6c3fa into gz-math7 Mar 1, 2025
@scpeters scpeters deleted the scpeters/unhide_find_python_cmake_warning_7 branch March 1, 2025 00:20
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎵 harmonic Gazebo Harmonic

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants