Skip to content

Increase CMake minimum version from 3.16 to 3.22.1 - #4824

Merged
rouault merged 1 commit into
OSGeo:masterfrom
mwtoews:cmake-3.22.1
Sep 4, 2026
Merged

Increase CMake minimum version from 3.16 to 3.22.1#4824
rouault merged 1 commit into
OSGeo:masterfrom
mwtoews:cmake-3.22.1

Conversation

@mwtoews

@mwtoews mwtoews commented Aug 22, 2026

Copy link
Copy Markdown
Member

This PR upgrades the CMake minimum version from 3.16 to 3.22.1. It also cleans up code that was needed to support older CMake versions.

I will consider some improvements using target_compile_features() (discussed in #1924) in a follow-up.

Closes #4756

@jjimenezshaw

Copy link
Copy Markdown
Contributor

What about upgrading Ubuntu already to 24.04?

@mwtoews

mwtoews commented Aug 22, 2026

Copy link
Copy Markdown
Member Author

I'd prefer keeping the CI testing to use the minimum supported versions. Also, I might hold this on draft to separate the CI upgrade stuff separately.... see #4825 #4835

@mwtoews
mwtoews marked this pull request as draft August 22, 2026 20:32
@mwtoews
mwtoews marked this pull request as ready for review September 4, 2026 00:03
@mwtoews

mwtoews commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

The minimum CMake version is tested with mingw_w64_build, which runs ubuntu-22.04 (jammy) with cmake 3.22.1. The remaining CI uses 3.28.3 to CMake 4.4.

@mwtoews mwtoews added this to the 9.9.0 milestone Sep 4, 2026
@rouault
rouault merged commit c3a4959 into OSGeo:master Sep 4, 2026
30 checks passed
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.

Minimum CMake version for PROJ 9.9 series

3 participants