Skip to content

Bump CMake minimum version to oldest non-deprecated#2

Open
adamnovak wants to merge 1 commit intosimongog:masterfrom
adamnovak:bump-cmake
Open

Bump CMake minimum version to oldest non-deprecated#2
adamnovak wants to merge 1 commit intosimongog:masterfrom
adamnovak:bump-cmake

Conversation

@adamnovak
Copy link
Copy Markdown

CMake 4 has started failing builds on CMakeLists.txt files that claim to be compatible with CMake 3.5 or earlier, on the theory that that's unlikely to actually be under CI testing in the project being built. There's a workaround of defining a variable on the command line, but that doesn't work if the offending project is behind two or more levels of dependencies.

This updates the CMakeLists.txt to build on CMake 4, and notes that it contemplates CMake versions up to 4.0, while dropping support for building on versions of CMake that CMake 4 deprecates.

CMake 4 has started failing builds on CMakeLists.txt files that claim to
be compatible with CMake 3.5 or earlier, on the theory that that's
unlikely to actually be under CI testing in the project being built.
There's a workaround of defining a variable on the command line, but
that doesn't work if the offending project is behind two or more levels
of dependencies.

This updates the CMakeLists.txt to build on CMake 4, and notes that it
contemplates CMake versions up to 4.0, while dropping support for
building on versions of CMake that CMake 4 deprecates.
@adamnovak
Copy link
Copy Markdown
Author

adamnovak commented Apr 22, 2025

2.4.4....4.0 might also work as the version specifier, and would say to build with the 4.0 default values of all the policies, when available, but that CMake 2.4.4 should still be allowed to try to do the build.

adamnovak added a commit to vgteam/vg that referenced this pull request Apr 22, 2025
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