From 3bc476db105cdea417c9f263a8d9bbcf1df3cebd Mon Sep 17 00:00:00 2001 From: John McCrae Date: Wed, 29 Jul 2026 10:19:13 +0100 Subject: [PATCH] Bump cmake_minimum_required to fix build with modern CMake 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. --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fd5bee..cc3c4aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) project(fast_align) -cmake_minimum_required(VERSION 2.8 FATAL_ERROR) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -O3 -g") include_directories(${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/README.md b/README.md index 5f1d0ec..d144326 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Input to `fast_align` must be tokenized and aligned into parallel sentences. Eac ## Compiling and using `fast_align` -Building `fast_align` requires a modern C++ compiler and the [CMake]() build system. Additionally, the following libraries can be used to obtain better performance +Building `fast_align` requires a modern C++ compiler and the [CMake](https://cmake.org) build system (version 3.10 or newer). Additionally, the following libraries can be used to obtain better performance * OpenMP (included with some compilers, such as GCC) * libtcmalloc (part of Google's perftools)