Skip to content

Bump cmake_minimum_required for compatibility with modern CMake - #66

Open
jmccrae wants to merge 1 commit into
clab:masterfrom
jmccrae:fix-cmake-minimum-version
Open

Bump cmake_minimum_required for compatibility with modern CMake#66
jmccrae wants to merge 1 commit into
clab:masterfrom
jmccrae:fix-cmake-minimum-version

Conversation

@jmccrae

@jmccrae jmccrae commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • CMakeLists.txt pinned cmake_minimum_required(VERSION 2.8). CMake 3.5+ dropped compatibility with policies older than 2.8.12, so configuring with a modern CMake (e.g. 4.x) fails immediately with Compatibility with CMake < 3.5 has been removed from CMake. Bumped to VERSION 3.10 and moved it ahead of project() per current CMake guidance.
  • Fixed a dead/empty [CMake]() link in the README, pointing it at cmake.org.

Test plan

  • mkdir build && cd build && cmake .. && make completes successfully with CMake 4.2.3 / GCC 15.2.0
  • ./fast_align and ./atools run and print usage
  • Ran fast_align -i <example corpus> -d -o -v on the German–English example from the README and got sane alignments

🤖 Generated with Claude Code

CMake 3.5+ removed compatibility with the VERSION 2.8 policy, so
configuring with recent CMake releases (e.g. 4.x) fails outright.
Also fixes a dead link to the CMake homepage in the README.
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