Skip to content

Conversation

@galmyk
Copy link

@galmyk galmyk commented Apr 3, 2025

Last week CMake 4.0 released and it is in available in some bleeding edge distros like Arch Linux and it will be available in other distros soon.

Compatibility with CMake < 3.5 has been removed from CMake 4.0.

So we need to 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.

Or, we need add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to cmake arguments to try configuring anyway.

I changed <min> to 3.5, so we can build with cmake >= 4.0.

Last week CMake 4.0 released and it is in available in some
bleeding edge distros like Arch Linux and it will be available
in other distros soon.

Compatibility with CMake < 3.5 has been removed from CMake 4.0.

So we need to 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.

Or, we need add `-DCMAKE_POLICY_VERSION_MINIMUM=3.5` to cmake
arguments to try configuring anyway.

I changed `<min>` to `3.5`, so we can build with cmake >= 4.0.

Signed-off-by: Ghorban M. Tavakoly <gmt3141@gmail.com>
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