Skip to content

keystone: set CMake policy version to fix build with newer CMake - #27266

Merged
striezel merged 1 commit into
msys2:masterfrom
striezel-stash:keystone-cmake-build-fix
Jan 9, 2026
Merged

keystone: set CMake policy version to fix build with newer CMake#27266
striezel merged 1 commit into
msys2:masterfrom
striezel-stash:keystone-cmake-build-fix

Conversation

@striezel

@striezel striezel commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

Otherwise build fails with messages like

CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
   Compatibility with CMake < 3.5 has been removed from 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.

   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

@MehdiChinoune

Copy link
Copy Markdown
Collaborator

keystone-engine/keystone#593 include some fixes.

@striezel
striezel force-pushed the keystone-cmake-build-fix branch from 9259688 to 2b9714a Compare January 9, 2026 07:22
@striezel

striezel commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks.
Only updating the CMake policy was just a quick shot anyway. Let's see whether the CMake-related commit from that upstream pull request will suffice.

Edit: Seems to build properly now.

@striezel
striezel force-pushed the keystone-cmake-build-fix branch from 2b9714a to e6ac80f Compare January 9, 2026 07:27
@striezel
striezel marked this pull request as ready for review January 9, 2026 07:34
@striezel
striezel merged commit 222b3d9 into msys2:master Jan 9, 2026
7 of 8 checks passed
@striezel
striezel deleted the keystone-cmake-build-fix branch January 9, 2026 07:44
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.

2 participants