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: increase required version to 3.22 #5269

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

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Mar 3, 2025

Increase required CMake version to 3.22 (Nov 2021), replacing current version 3.16 (Nov 2019).

That version would be supported out-of-the-box with, e.g.:

  • Debian 12 Bookworm (current stable)
  • Fedora 36 (EOL)
  • Slackware 15.0 (current stable)
  • Ubuntu 22.04 (Jammy Jellyfish, EOL in Apr 2027)

See further platforms: https://repology.org/project/cmake/versions

Otherwise it may be installed through pip.

Version 3.22 comes with a number of useful improvements, among others for Apple ARM platform support, FindGDAL and FindPostgreSQL. See links below for news posts for each upgrade:

https://cmake.org/cmake/help/latest/release/3.17.html
https://cmake.org/cmake/help/latest/release/3.18.html
https://cmake.org/cmake/help/latest/release/3.19.html
https://cmake.org/cmake/help/latest/release/3.20.html
https://cmake.org/cmake/help/latest/release/3.21.html
https://cmake.org/cmake/help/latest/release/3.22.html

@nilason nilason added this to the 8.5.0 milestone Mar 3, 2025
@wenzeslaus
Copy link
Member

... FindGDAL and FindPostgreSQL.

Can you delete some of the CMake code, then?

@nilason
Copy link
Contributor Author

nilason commented Mar 3, 2025

... FindGDAL and FindPostgreSQL.

Can you delete some of the CMake code, then?

I have one PR prepared for PostgreSQL (similar to #5263), where we can drop the custom FindPostgreSQL file with 3.20. To mention a concrete example, in fact the reason I started to look at this.

@nilason
Copy link
Contributor Author

nilason commented Mar 3, 2025

Point of reference: QGIS just bumped to 3.23.

@github-actions github-actions bot added CI Continuous integration CMake labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration CMake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants