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

Fix: CMake Config Version w/o Suffix #548

Closed
wants to merge 1 commit into from

Conversation

ax3l
Copy link
Contributor

@ax3l ax3l commented Aug 20, 2023

When writing to CMake, we cannot append the suffix string in the version file, i.e., have to omit .dev.

The reason for that is that VERSION_GREATER_EQUAL is not that flexible: https://cmake.org/cmake/help/latest/variable/CMAKE_VERSION.html and downstream users comparing against the version will get a FALSE result comparing things like

if (Blosc2_VERSION VERSION_GREATER_EQUAL 2.10.1)

if Blosc2_VERSION is set to 2.10.2.dev.

Follow-up to #537

When writing to CMake, we cannot append the suffix string
in the version file, i.e., have to omit `.dev`.

The reason for that is that `VERSION_GREATER_EQUAL` is not that
flexible: https://cmake.org/cmake/help/latest/variable/CMAKE_VERSION.html
and downstream users comparing against the version will get a
`FALSE` result comparing things like
```cmake
if (Blosc2_VERSION VERSION_GREATER_EQUAL 2.10.1)
```
if `Blosc2_VERSION` is set to `2.10.2.dev`.
@ax3l ax3l changed the title Fix: CMake Config Version Fix: CMake Config Version w/o Suffix Aug 20, 2023
@ax3l
Copy link
Contributor Author

ax3l commented Aug 20, 2023

No, that's wrong. .dev suffix is no problem, just tested. No need to change this.

@ax3l ax3l closed this Aug 20, 2023
@ax3l ax3l deleted the cmake-config-version branch August 20, 2023 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant