-
Notifications
You must be signed in to change notification settings - Fork 70
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 #662
Conversation
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]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## gz-math8 #662 +/- ##
============================================
+ Coverage 95.71% 95.73% +0.01%
============================================
Files 150 151 +1
Lines 10390 10429 +39
============================================
+ Hits 9945 9984 +39
Misses 445 445 ☔ View full report in Codecov by Sentry. |
src/CMakeLists.txt
Outdated
@@ -20,6 +20,8 @@ add_subdirectory(graph) | |||
# Bindings subdirectories | |||
if (Python3_Development_FOUND AND NOT SKIP_PYBIND11) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should nest this logic like is done in gazebosim/gz-transport#565
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Steve Peters <[email protected]>
🦟 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 callfind_package(Python3)
, so move the warning to be co-located with the add_subdirectory call. Otherwise python bindings may be silently ignored.Checklist
codecheck
passed (See contributing)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.