mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-18 21:33:39 -09:00
Since the introduction of CMake 4 in several distributions such as Alpine [1] or Arch [2], build errors started occurring for cmake packages that included calls to cmake_minimum_required() or cmake_policy() with a version older than 3.5 (see [3]). This patch enforce building host-cmake when the host system provides CMake 4 or newer. This patch is only meant for LTS maintenance branches in which the host-cmake was kept to a version less than 4.x. This is to avoid too many unnecessary package updates and patches. If a package fail to build on the master branch because of this error it should be fixed instead. [1]21fe3cb10d[2]b634e8ded6[3] https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features Signed-off-by: Thomas Perale <thomas.perale@mind.be>