-
Notifications
You must be signed in to change notification settings - Fork 4
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
CMake script improvements (compat with s2 v0.11) #19
Conversation
For reusing the project in downstream projects
Not really useful (not sure anyone wants to build tests with coverage *and* install the library at the same time) but should probably fix CI.
This is fine with my usage (we're about to finally update the s2 version in the R package), but it might be worth keeping the defines (or a comment explaining that this bit of code would need to change if using an older version). |
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.
Also...thanks!
Cool thanks! Any objections if I cut a 0.1.1 release after merging this PR? It will help me moving forward with packaging in Spherely. |
I went ahead and published https://github.com/paleolimbot/s2geography/releases/tag/0.1.1 (hope you don't mind!) |
And released https://github.com/paleolimbot/s2geography/releases/tag/0.1.2 (sorry!) |
Some updates to the cmake script(s):
S2_SOURCE=BUNDLE
option.S2_SOURCE=BUNDLE
option (closes Noisy Tests Build #14)@paleolimbot @pramsey I had to add some (quite ugly) workarounds to make #13 work (
S2_VERSION_**
were undefined so the old definition ofS2CellRelation
was still selected even with s2 v0.11). As you mentioned there is still no easy way to get the version of s2 when it is found viafind_package()
. I'm not sure that requiring the user to manually specify the version (e.g., as a cmake option) would be better.To make things easier to maintain, I'm wondering if we couldn't just drop supporting versions of s2 < 0.11? For my usage (Python / spherely) that would be fine. What about your usage? Any thoughts?