-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix check for ogre when using USE_UNOFFICIAL_OGRE_VERSIONS #453
Conversation
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
5b8f915
to
5ea5506
Compare
Codecov Report
@@ Coverage Diff @@
## ign-rendering6 #453 +/- ##
===============================================
Coverage 53.49% 53.49%
===============================================
Files 192 192
Lines 19560 19560
===============================================
Hits 10464 10464
Misses 9096 9096 Continue to review full report at Codecov.
|
should we target this at |
endif() | ||
endif() | ||
|
||
if (NOT OGRE_FOUND) | ||
# If ogre 1.10 or greater was not found, then proceed to look for 1.9.x |
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.
This comment may be a bit misleading, as OGRE_FOUND
is false either if ogre 1.10 or greater was not found, or also if USE_UNOFFICIAL_OGRE_VERSIONS
is explicitly set to TRUE
.
Hi @j-rivero, while debugging some failed conda builds in conda-forge/libignition-rendering4-feedstock#21, I am afraid I found something problematic in how this code is structured. Quoting conda-forge/libignition-rendering4-feedstock#21 (comment) :
In my specific case, this created a problem that could be solved by adding
and then just print a warning depending on the Ogre version found and the value of the |
I see, sorry for the inconvenience.
Sounds like the proper solution to the whole mess. Would you mind sending the PR against Thanks Silvio! |
Sorry, I had missed this message! |
no worries! |
🦟 Bug fix
Fixes #376 (comment)
Summary
The use of
USE_UNOFFICIAL_OGRE_VERSIONS
totally missed the check for Ogre. The PR should make it unconditional.