Skip to content

Fix build with CMake 4 - #237

Merged
Tabby merged 1 commit into
masterfrom
fix-cmake-4-builds
Oct 18, 2025
Merged

Fix build with CMake 4#237
Tabby merged 1 commit into
masterfrom
fix-cmake-4-builds

Conversation

@Tabby

@Tabby Tabby commented Oct 18, 2025

Copy link
Copy Markdown
Collaborator

Make builds work on Linux when using CMake 4.0.0 or greater

  • Set CMAKE_POLICY_VERSION_MINIMUM=3.5 when CMake 4 or greater is being used
  • Bump the version of SentencePiece built from source to 0.2.1
  • Fix name of cpu_features setting to disable tests and disable tests in CT2, to avoid GTest being built as it has a REALLY old minimum CMake version

Fixes: #236

@Tabby
Tabby force-pushed the fix-cmake-4-builds branch from 68dea39 to 510ecbc Compare October 18, 2025 18:29
@Tabby
Tabby merged commit 9529451 into master Oct 18, 2025
11 checks passed
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.

Issue when building in Arch Linux: Unable to find target lstm_res and adaboost_res

1 participant