Skip to content

Conversation

@a17r
Copy link

@a17r a17r commented Jan 7, 2026

Raise !WIN32 minimum mildly from 3.9 to 3.10, which was released in 2017. If Windows build can deal with 3.19, so should others. This enables policy level up to 3.19 when using modern versions of CMake.

Fixes CMake 3.31 warning:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Raise !WIN32 minimum mildly from 3.9 to 3.10, which was released in 2017.
If Windows build can deal with 3.19, so should others. This enables policy
level up to 3.19 when using modern versions of CMake.

Fixes CMake 3.31 warning:

> CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
>   Compatibility with CMake < 3.10 will be removed from a future version of
>   CMake.
>
>   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
>   to tell CMake that the project requires at least <min> but has been updated
>   to work with policies introduced by <max> or earlier.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
@ajtribick
Copy link
Collaborator

According to Debian package search, Debian 11 has cmake 3.18, so maybe we should just set that as a minimum version regardless of platform. (Windows needs 3.19 for some of the DLL copying, but having 3.18 in the directive shouldn't be an issue there.)

@375gnu - thoughts?

@375gnu
Copy link
Collaborator

375gnu commented Jan 9, 2026

Personally I'm not a fan of using the latest tools.

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.

3 participants