cmake: bump minimum required to version 3.5.0 #859
No reviewers
Labels
No labels
announcement
bug
build
CI
dependencies
documentation
duplicate
enhancement
experience feedback
feature request
github_actions
help wanted
install
invalid
Long-term
optimization
portability
question
target-specific
test issue
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Cyan4973/xxHash!859
Loading…
Reference in a new issue
No description provided.
Delete branch "cmake-minimum-required"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This fixes the following warning when configuring with CMake 3.27+:
Moving the minimum version to
v3.5is fine by me,as it's the version supported by Ubuntu Xenial, which is the oldest linux distribution worth supporting in 2023 imho.
But we don't update a minimum version just for the sake of it, since it mechanically reduces the addressable scope of the cmake script. We must "gain" something from this change.
It seems the gain in this case is a higher guarantee to remain supported in some future versions of
cmake, which may drop support for versions older thanv3.5in some unspecified future.That's a good enough reason I believe.
The PR is also well done, updating the cmake min version test introduced by @t-mat, and exploiting the increased minimum version to slightly reduce complexity of the script.
The only remaining question is if it's worth updating it "right now", or can it wait after the imminent release.
I would tend to lean towards the latter, as there is no immediate risk (the only downside is a warning message for some really recent versions of
cmake) but increasing the minimum version may prevent some older systems from buildingxxhashwithcmake. While it's probably not major, it still is a negative.