Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unhide cmake warning when Python3 Development is not found (backport #565) #574

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 10, 2025

🦟 Bug fix

Unhides a cmake warning when python bindings will not be built

Summary

A cmake warning should be printed when python bindings will not be built (controlled by the logic around add_subdirectory(python)), but the warning was in a separate part of the code, allowing the warning to be missed if the Python3_Development_FOUND variable changed in between.

Since GZ_BUILD_WARNING("") only generates a cmake warning if invoked before gz_configure_build, I switched to use message(WARNING "") in e464330.

Also, the failed Ubuntu Noble CI build is expected because finding python is currently broken for all platforms, but only our Ubuntu Noble CI builds report cmake warnings. I believe finding python should be fixed once gazebosim/gz-msgs#479 is merged and released. I think it would be worth merging this so that our broken state is accurately reflected.

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.


This is an automatic backport of pull request #565 done by [Mergify](https://mergify.com).

* Unify Python3_Development_FOUND checks

The value of this variable may change, so move the
warning to be co-located with the add_subdirectory call.

* Use message(WARNING)

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit f9cd5c5)
@mergify mergify bot requested a review from caguero as a code owner February 10, 2025 21:44
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Feb 10, 2025
@scpeters
Copy link
Member

the cmake warning appears on jammy with this change; I'm guessing it needs this backport to be merged and released: gazebosim/gz-msgs#482

@scpeters scpeters requested a review from azeey February 11, 2025 02:08
@scpeters
Copy link
Member

the cmake warning appears on jammy with this change; I'm guessing it needs this backport to be merged and released: gazebosim/gz-msgs#482

this has been merged and released in gz-msgs 10.3.2

I think the gz-transport13 debbuilds will work now

@scpeters
Copy link
Member

I think the gz-transport13 debbuilds will work now

@scpeters scpeters merged commit afb0980 into gz-transport13 Feb 14, 2025
11 checks passed
@scpeters scpeters deleted the mergify/bp/gz-transport13/pr-565 branch February 14, 2025 18:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants