Skip to content
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 3.5 compatibility #548

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jagerman
Copy link

@jagerman jagerman commented Mar 3, 2020

Adds a few minor workarounds to make CMakeLists.txt compatible with cmake 3.5 (which is still out in the wild as it is Ubuntu xenial's cmake version):

  • $<IF isn't supported before 3.8, but all the uses of $<IF here are actually simpler to write without $<IF.

  • VERSION_GREATER_EQUAL isn't supported before 3.7, but is easily worked around with a NOT ... VERSION_LESS

Fixes #547

Adds a few minor workarounds to make CMakeLists.txt compatible with
cmake 3.5:

- `$<IF` isn't supported before 3.8, but all the uses of `$<IF` here are
actually simpler to write without `$<IF`.

- VERSION_GREATER_EQUAL isn't supported before 3.7, but is easily worked
around with a NOT ... VERSION_LESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't work with stated cmake minimum (3.7)
2 participants