-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add more explicit version compatibility for OGRE2 #297
Conversation
Signed-off-by: Michael Carroll <[email protected]>
Note that some portion of this will need to be backported to |
So translating to the Also, I'd like to confirm what happens if only a major version |
Correct, that is the semantics I was trying to follow. We are using pkg-config to actually search rather than
I will add test cases for this. I know that any major version outside of 2 will cause it not to be found, to prevent finding OGRE 13 (which will be once again interesting when ogre-next-3.0 comes out). |
Signed-off-by: Michael Carroll <[email protected]>
I added a test case for just the major version: The results in the docker container are "OGRE Not found", which is the desired behavior in this case.
|
I assume it will also give |
91e06c9
to
14a4e7b
Compare
Signed-off-by: Michael Carroll <[email protected]>
14a4e7b
to
d910a25
Compare
In this case, there is no real ABI/API compatibility guarantees between minor version, so I believe we need to have users explicitly request a minor version. I have updated the warnings accordingly.
|
🦟 Bug fix
Fixes #295
Summary
Before this patch, it was possible for a
gz_find_package()
to return an incompatible version of OGRE2. This patch adjusts the logic to insure that exact (or compatible) matches are surfaced.I have added a simple test to verify the behavior here: https://github.com/mjcarroll/ogre23_docker_test
It can be tested via building/running a docker container, for example
The expected output for the "both" case is that:
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.