From d4e21347c109d2b772f356aedaf68ab4f95a40d2 Mon Sep 17 00:00:00 2001 From: Sergey Kaplun Date: Mon, 28 Apr 2025 12:06:47 +0300 Subject: [PATCH] cmake: update the minimum required version For CMake 4.0, compatibility with versions of CMake older than 3.5 has been removed [1]. Thus, on macOS it leads to the error on build, since Homebrew updates it to version 4.0. This patch sets the minimum required version to 3.5 for now. [1]: https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d3ed0fc..5573f1c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ - -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.5) project (yaml C) set (YAML_VERSION_MAJOR 0)