GeezerVison is showing github.com — cmake: allow configuration with CMake 4 by Old-Ding · Pull Request #274 · tinyalsa/tinyalsa
Conversation
Old-Ding
commented
Jul 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #273.
Summary
- keep the existing CMake 3.1 minimum requirement
- set the CMake policy compatibility version to 3.10 so CMake 4.x no longer rejects the project at
cmake_minimum_required()
Verification
- actual pre-change source with CMake 4.3.2 fails at line 1 with
Compatibility with CMake < 3.5 has been removed from CMake.
- PR head with CMake 4.3.2, Ninja, and GCC 16.1.0 configures successfully and generates the full library build graph
- PR head also configures successfully with the official CMake 3.1.3 binary, confirming that the range syntax preserves the declared 3.1 minimum on pre-3.12 CMake
- a MinGW build reaches source compilation and then stops because TinyALSA targets Linux and MinGW does not provide POSIX
poll.h; this is independent of the CMake policy change
git diff --check
git ls-files --eol CMakeLists.txt
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Keep the existing 3.1 minimum while setting the policy compatibility version high enough for CMake 4.x.
Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.